aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-06-28 15:38:36 +0300
committerLeon Romanovsky <leon@kernel.org>2017-08-10 13:28:12 +0300
commit80a06dd36f79de7007f21f5cbe42181a4e5c7d6d (patch)
treed92472870c6cb997e449707b8adf52404fc6def6 /include/uapi/rdma
parentRDMA/netlink: Advertise IB subnet prefix (diff)
downloadlinux-dev-80a06dd36f79de7007f21f5cbe42181a4e5c7d6d.tar.xz
linux-dev-80a06dd36f79de7007f21f5cbe42181a4e5c7d6d.zip
RDMA/netink: Export lids and sm_lids
According to the IB specification, the LID and SM_LID are 16-bit wide, but to support OmniPath users, export it as 32-bit value from the beginning. Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r--include/uapi/rdma/rdma_netlink.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h
index 481003182a35..7d5caaf54126 100644
--- a/include/uapi/rdma/rdma_netlink.h
+++ b/include/uapi/rdma/rdma_netlink.h
@@ -284,6 +284,14 @@ enum rdma_nldev_attr {
*/
RDMA_NLDEV_ATTR_SUBNET_PREFIX, /* u64 */
+ /*
+ * Local Identifier (LID),
+ * According to IB specification, It is 16-bit address assigned
+ * by the Subnet Manager. Extended to be 32-bit for OmniPath users.
+ */
+ RDMA_NLDEV_ATTR_LID, /* u32 */
+ RDMA_NLDEV_ATTR_SM_LID, /* u32 */
+
RDMA_NLDEV_ATTR_MAX
};
#endif /* _UAPI_RDMA_NETLINK_H */