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>
This commit is contained in:

committed by
Leon Romanovsky

parent
12026fbba6
commit
80a06dd36f
@@ -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 */
|
||||
|
Reference in New Issue
Block a user