diff mbox series

vmw_pvscsi: expand vcpuHint to 16 bit.

Message ID EF35F4D5-5DCC-42C5-BCC4-29DF1729B24C@vmware.com
State New
Headers show
Series vmw_pvscsi: expand vcpuHint to 16 bit. | expand

Commit Message

Matt Wang June 2, 2022, 8:57 a.m. UTC
From 444507afb19f0384a3ad82fde04b78f439b42f0b Mon Sep 17 00:00:00 2001
From: Wentao Wang <wwentao@vmware.com>
Date: Thu, 2 Jun 2022 11:42:44 -0400
Subject: [PATCH] vmw_pvscsi: expand vcpuHint to 16 bit.

vcpuHint has been expanded to 16 bit on host to enable to route to
more CPUs, guest side should align with the change.
This change has been tested with hosts with 8 bit and 16 bit
vcpuHint, on both platform host side can get correct value.

Signed-off-by: Wentao Wang <wwentao@vmware.com>
---
 drivers/scsi/vmw_pvscsi.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Martin K. Petersen June 8, 2022, 2:27 a.m. UTC | #1
On Thu, 2 Jun 2022 08:57:00 +0000, Matt Wang wrote:

> From 444507afb19f0384a3ad82fde04b78f439b42f0b Mon Sep 17 00:00:00 2001
> From: Wentao Wang <wwentao@vmware.com>
> Date: Thu, 2 Jun 2022 11:42:44 -0400
> Subject: [PATCH] vmw_pvscsi: expand vcpuHint to 16 bit.
> 
> vcpuHint has been expanded to 16 bit on host to enable to route to
> more CPUs, guest side should align with the change.
> This change has been tested with hosts with 8 bit and 16 bit
> vcpuHint, on both platform host side can get correct value.
> 
> [...]

Applied to 5.19/scsi-fixes, thanks!

[1/1] vmw_pvscsi: expand vcpuHint to 16 bit.
      https://git.kernel.org/mkp/scsi/c/cf71d59c2ece
diff mbox series

Patch

diff --git a/drivers/scsi/vmw_pvscsi.h b/drivers/scsi/vmw_pvscsi.h
index 51a82f7803d3..9d16cf925483 100644
--- a/drivers/scsi/vmw_pvscsi.h
+++ b/drivers/scsi/vmw_pvscsi.h
@@ -331,8 +331,8 @@  struct PVSCSIRingReqDesc {
 	u8	tag;
 	u8	bus;
 	u8	target;
-	u8	vcpuHint;
-	u8	unused[59];
+	u16	vcpuHint;
+	u8	unused[58];
 } __packed;
 
 /*