]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: split free_unused_bufs()
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>
Mon, 1 Aug 2022 06:38:59 +0000 (14:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:59 +0000 (11:35 +0200)
commitd73190c3b5c19ddd71639f6be4d21e78ba53ae6e
tree22c555c22f83a0b6089654118c7273bd55ec403d
parent87a09febc22747323757b9603f7e68fa48e96ed9
virtio_net: split free_unused_bufs()

[ Upstream commit aec7246beeb088abe4f4262c817c10098d7b34f5 ]

This patch separates two functions for freeing sq buf and rq buf from
free_unused_bufs().

When supporting the enable/disable tx/rq queue in the future, it is
necessary to support separate recovery of a sq buf or a rq buf.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220801063902.129329-40-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Stable-dep-of: f8bb51043945 ("virtio_net: suppress cpu stall when free_unused_bufs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/virtio_net.c