net/mlx5e: IPoIB, Add support for NDR speed
Add NDR IB PTYS coding and NDR speed 100GHz.
Fixes: 235b6ac306
("RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool")
Signed-off-by: Meir Lichtinger <meirl@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
c4cf987ebe
commit
ab57a912be
@ -150,6 +150,7 @@ enum mlx5_ptys_rate {
|
||||
MLX5_PTYS_RATE_FDR = 1 << 4,
|
||||
MLX5_PTYS_RATE_EDR = 1 << 5,
|
||||
MLX5_PTYS_RATE_HDR = 1 << 6,
|
||||
MLX5_PTYS_RATE_NDR = 1 << 7,
|
||||
};
|
||||
|
||||
static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
|
||||
@ -162,6 +163,7 @@ static inline int mlx5_ptys_rate_enum_to_int(enum mlx5_ptys_rate rate)
|
||||
case MLX5_PTYS_RATE_FDR: return 14000;
|
||||
case MLX5_PTYS_RATE_EDR: return 25000;
|
||||
case MLX5_PTYS_RATE_HDR: return 50000;
|
||||
case MLX5_PTYS_RATE_NDR: return 100000;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user