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

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

* virtnet_rx_pause
* virtnet_rx_resume

Then the subsequent reset rx for xsk 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-3-xuanzhuo@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/virtio_net.c