diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2024-02-29 08:20:42 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-03-19 08:19:22 +0100 |
commit | b1dc24aba789190dad0047c1f4c16049dd698769 (patch) | |
tree | 1aa500db55fa143816ccf8e7c0bdf3e5639f1d5d /drivers/scsi/myrs.h | |
parent | virtio-net: add cond_resched() to the command waiting loop (diff) | |
download | linux-b1dc24aba789190dad0047c1f4c16049dd698769.tar.xz linux-b1dc24aba789190dad0047c1f4c16049dd698769.zip |
virtio_net: unify the code for recycling the xmit ptr
There are two completely similar and independent implementations. This
is inconvenient for the subsequent addition of new types. So extract a
function from this piece of code and call this function uniformly to
recover old xmit ptr.
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20240229072044.77388-18-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/scsi/myrs.h')
0 files changed, 0 insertions, 0 deletions