]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hv_netvsc: Remove rmsg_pgcnt
authorMichael Kelley <mhklinux@outlook.com>
Tue, 13 May 2025 00:06:03 +0000 (17:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:21 +0000 (14:12 +0200)
commit115c7890476eb4ba348a51452d3b027614ed15ca
tree16800b53fe27584998f3a2053c416ea0cab7dbb5
parent307963a3abf8191fb9df06dc86e90236292fda17
hv_netvsc: Remove rmsg_pgcnt

commit 5bbc644bbf4e97a05bc0cb052189004588ff8a09 upstream.

init_page_array() now always creates a single page buffer array entry
for the rndis message, even if the rndis message crosses a page
boundary. As such, the number of page buffer array entries used for
the rndis message must no longer be tracked -- it is always just 1.
Remove the rmsg_pgcnt field and use "1" where the value is needed.

Cc: <stable@vger.kernel.org> # 6.1.x
Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Link: https://patch.msgid.link/20250513000604.1396-5-mhklinux@outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c