]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio_net: separate virtnet_tx_resize()
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Mon, 8 Jul 2024 11:25:30 +0000 (19:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jul 2024 03:32:38 +0000 (20:32 -0700)
commit391aa2aad0229d0f34aed6270c5266a0754893a2
tree3fdcf3046244e131f3a0d78e37a275f7bb5fa36c
parent47879b7322fa0d53c54970099a0ec0aee1d281e2
virtio_net: separate virtnet_tx_resize()

This patch separates two sub-functions from virtnet_tx_resize():

* virtnet_tx_pause
* virtnet_tx_resume

Then the subsequent virtnet_tx_reset() can share these two functions.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://patch.msgid.link/20240708112537.96291-4-xuanzhuo@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c