Skip to content

Commit 00469c9

Browse files
Adit Ranadivejgunthorpe
authored andcommitted
RDMA/vmw_pvrdma: Fix the active_speed and phys_state value
The pvrdma_port_attr structure is ABI toward the hypervisor, changing it breaks the ability to report the speed properly. Revert the change to u16. Fixes: 376ceb3 ("RDMA: Fix link active_speed size") Link: https://lore.kernel.org/r/20201102225437.26557-1-aditr@vmware.com Reviewed-by: Vishnu Dasa <vdasa@vmware.com> Signed-off-by: Adit Ranadive <aditr@vmware.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 372a178 commit 00469c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ struct pvrdma_port_attr {
176176
u8 subnet_timeout;
177177
u8 init_type_reply;
178178
u8 active_width;
179-
u16 active_speed;
179+
u8 active_speed;
180180
u8 phys_state;
181181
u8 reserved[2];
182182
};

0 commit comments

Comments
 (0)