mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
RDMA/ipoib: Add support for XDR speed in ethtool
The IBTA specification 1.7 has new speed - XDR, supporting signaling rate of 200Gb. Ethtool support of IPoIB driver translates IB speed to signaling rate. Added translation of XDR IB type to rate of 200Gb Ethernet speed. Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Reviewed-by: Mark Zhang <markzhang@nvidia.com> Link: https://lore.kernel.org/r/ca252b79b7114af967de3d65f9a38992d4d87a14.1695204156.git.leon@kernel.org Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
4f4db19089
commit
8dc0fd2f56
1 changed files with 2 additions and 0 deletions
|
@ -174,6 +174,8 @@ static inline int ib_speed_enum_to_int(int speed)
|
|||
return SPEED_50000;
|
||||
case IB_SPEED_NDR:
|
||||
return SPEED_100000;
|
||||
case IB_SPEED_XDR:
|
||||
return SPEED_200000;
|
||||
}
|
||||
|
||||
return SPEED_UNKNOWN;
|
||||
|
|
Loading…
Reference in a new issue