]> 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:10:05 +0000 (14:10 +0200)
commitb47a984faf5c0f1b7092e4b4faf2ccd2b7142444
treed6fa3339f78467663d4c928873c9ec2ddc81fb9e
parent86b05e14c4cfdd8ce73fc7cdbb3d2527012db20b
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