aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc_drv.c
diff options
context:
space:
mode:
authorMichael Kelley <[email protected]>2025-05-13 00:06:01 +0000
committerJakub Kicinski <[email protected]>2025-05-15 02:45:23 +0000
commit4f98616b855cb0e3b5917918bb07b44728eb96ea (patch)
tree6ef02e4256438d5f709faff5a595b7c275222d93 /drivers/net/hyperv/netvsc_drv.c
parentDrivers: hv: Allow vmbus_sendpacket_mpb_desc() to create multiple ranges (diff)
downloadkernel-4f98616b855cb0e3b5917918bb07b44728eb96ea.tar.gz
kernel-4f98616b855cb0e3b5917918bb07b44728eb96ea.zip
hv_netvsc: Use vmbus_sendpacket_mpb_desc() to send VMBus messages
netvsc currently uses vmbus_sendpacket_pagebuffer() to send VMBus messages. This function creates a series of GPA ranges, each of which contains a single PFN. However, if the rndis header in the VMBus message crosses a page boundary, the netvsc protocol with the host requires that both PFNs for the rndis header must be in a single "GPA range" data structure, which isn't possible with vmbus_sendpacket_pagebuffer(). As the first step in fixing this, add a new function netvsc_build_mpb_array() to build a VMBus message with multiple GPA ranges, each of which may contain multiple PFNs. Use vmbus_sendpacket_mpb_desc() to send this VMBus message to the host. There's no functional change since higher levels of netvsc don't maintain or propagate knowledge of contiguous PFNs. Based on its input, netvsc_build_mpb_array() still produces a separate GPA range for each PFN and the behavior is the same as with vmbus_sendpacket_pagebuffer(). But the groundwork is laid for a subsequent patch to provide the necessary grouping. Cc: <[email protected]> # 6.1.x Signed-off-by: Michael Kelley <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/hyperv/netvsc_drv.c')
0 files changed, 0 insertions, 0 deletions