Commit 00469c97 authored by Adit Ranadive's avatar Adit Ranadive Committed by Jason Gunthorpe

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: 376ceb31 ("RDMA: Fix link active_speed size")
Link: https://lore.kernel.org/r/20201102225437.26557-1-aditr@vmware.comReviewed-by: default avatarVishnu Dasa <vdasa@vmware.com>
Signed-off-by: default avatarAdit Ranadive <aditr@vmware.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 372a1786
...@@ -176,7 +176,7 @@ struct pvrdma_port_attr { ...@@ -176,7 +176,7 @@ struct pvrdma_port_attr {
u8 subnet_timeout; u8 subnet_timeout;
u8 init_type_reply; u8 init_type_reply;
u8 active_width; u8 active_width;
u16 active_speed; u8 active_speed;
u8 phys_state; u8 phys_state;
u8 reserved[2]; u8 reserved[2];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment