diff options
author | Or Har-Toov <ohartoov@nvidia.com> | 2023-09-20 12:07:41 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-09-26 11:38:43 +0200 |
commit | 561b4a3ac65597c5eca62c91260240a47c88b3da (patch) | |
tree | 91d00a068ee18eb88195b8d030dda819cb845c50 /include/rdma | |
parent | IB/core: Add support for XDR link speed (diff) | |
download | linux-561b4a3ac65597c5eca62c91260240a47c88b3da.tar.xz linux-561b4a3ac65597c5eca62c91260240a47c88b3da.zip |
IB/mlx5: Expose XDR speed through MAD
Under MAD query port, Report NDR speed when NDR is supported in the port
capability mask.
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Link: https://lore.kernel.org/r/d30bdec2a66a8a2edd1d84ee61453c58cf346b43.1695204156.git.leon@kernel.org
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_mad.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index 2e3843b761e8..3f1b58d8b4bf 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h @@ -277,6 +277,8 @@ enum ib_port_capability_mask2_bits { IB_PORT_LINK_WIDTH_2X_SUP = 1 << 4, IB_PORT_LINK_SPEED_HDR_SUP = 1 << 5, IB_PORT_LINK_SPEED_NDR_SUP = 1 << 10, + IB_PORT_EXTENDED_SPEEDS2_SUP = 1 << 11, + IB_PORT_LINK_SPEED_XDR_SUP = 1 << 12, }; #define OPA_CLASS_PORT_INFO_PR_SUPPORT BIT(26) |