Commit 6a5f4bf5 authored by Xuan Zhuo's avatar Xuan Zhuo Committed by sanglipeng
Browse files

virtio_net: split free_unused_bufs()

stable inclusion
from stable-v5.10.180
commit c043714ef230065fd5303307acbd2ca2627cb567
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c043714ef230065fd5303307acbd2ca2627cb567



--------------------------------

[ Upstream commit 6e345f8c ]

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: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Message-Id: <20220801063902.129329-40-xuanzhuo@linux.alibaba.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Stable-dep-of: f8bb5104 ("virtio_net: suppress cpu stall when free_unused_bufs")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 38071f71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment