hv_netvsc: Remove rmsg_pgcnt
authorMichael Kelley <mhklinux@outlook.com>
Tue, 13 May 2025 00:06:03 +0000 (17:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:45:24 +0000 (19:45 -0700)
commit5bbc644bbf4e97a05bc0cb052189004588ff8a09
tree588df5881e0b07f912e029b9bd0ff1371251fd13
parent41a6328b2c55276f89ea3812069fd7521e348bbf
hv_netvsc: Remove rmsg_pgcnt

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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c