Drivers: hv: Allow vmbus_sendpacket_mpb_desc() to create multiple ranges
authorMichael Kelley <mhklinux@outlook.com>
Tue, 13 May 2025 00:06:00 +0000 (17:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 02:45:23 +0000 (19:45 -0700)
commit380b75d3078626aadd0817de61f3143f5db6e393
treed650f759f905939527da91aaa1378a8f8ea1eb45
parentbf449f35e77fd44017abf991fac1f9ab7705bbe0
Drivers: hv: Allow vmbus_sendpacket_mpb_desc() to create multiple ranges

vmbus_sendpacket_mpb_desc() is currently used only by the storvsc driver
and is hardcoded to create a single GPA range. To allow it to also be
used by the netvsc driver to create multiple GPA ranges, no longer
hardcode as having a single GPA range. Allow the calling driver to
specify the rangecount in the supplied descriptor.

Update the storvsc driver to reflect this new approach.

Cc: <stable@vger.kernel.org> # 6.1.x
Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Link: https://patch.msgid.link/20250513000604.1396-2-mhklinux@outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/hv/channel.c
drivers/scsi/storvsc_drv.c