]> 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:10:05 +0000 (14:10 +0200)
commit6ef4c72213abdc4ba56bb3b998962acadd592c24
treee700e0649731a2278c9a07393f97bb321ca170a3
parentb47a984faf5c0f1b7092e4b4faf2ccd2b7142444
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