]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:12:21 +0000 (14:12 +0200)
commitc0f3f0c88f166d6da347363d4c2e8fc980858172
tree8ebfd096d44b8c6d2268f01050955f16f288ccb7
parent115c7890476eb4ba348a51452d3b027614ed15ca
Drivers: hv: Allow vmbus_sendpacket_mpb_desc() to create multiple ranges

commit 380b75d3078626aadd0817de61f3143f5db6e393 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/scsi/storvsc_drv.c