RDMA: Fix link active_speed size
According to the IB spec active_speed size should be u16 and not u8 as before. Changing it to allow further extensions in offered speeds. Link: https://lore.kernel.org/r/20200917090223.1018224-4-leon@kernel.org Signed-off-by: Aharon Landau <aharonl@mellanox.com> Reviewed-by: Michael Guralnik <michaelgur@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
e27014bdb4
commit
376ceb31ff
@@ -535,7 +535,8 @@ enum ib_port_speed {
|
||||
IB_SPEED_FDR10 = 8,
|
||||
IB_SPEED_FDR = 16,
|
||||
IB_SPEED_EDR = 32,
|
||||
IB_SPEED_HDR = 64
|
||||
IB_SPEED_HDR = 64,
|
||||
IB_SPEED_NDR = 128,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -669,7 +670,7 @@ struct ib_port_attr {
|
||||
u8 subnet_timeout;
|
||||
u8 init_type_reply;
|
||||
u8 active_width;
|
||||
u8 active_speed;
|
||||
u16 active_speed;
|
||||
u8 phys_state;
|
||||
u16 port_cap_flags2;
|
||||
};
|
||||
@@ -4410,7 +4411,7 @@ void ib_drain_rq(struct ib_qp *qp);
|
||||
void ib_drain_sq(struct ib_qp *qp);
|
||||
void ib_drain_qp(struct ib_qp *qp);
|
||||
|
||||
int ib_get_eth_speed(struct ib_device *dev, u8 port_num, u8 *speed, u8 *width);
|
||||
int ib_get_eth_speed(struct ib_device *dev, u8 port_num, u16 *speed, u8 *width);
|
||||
|
||||
static inline u8 *rdma_ah_retrieve_dmac(struct rdma_ah_attr *attr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user