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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -284,6 +284,14 @@ enum rdma_nldev_attr { · 283 unmodified lines | |||
| 284 | */ | 284 | */ |
| 285 | RDMA_NLDEV_ATTR_SUBNET_PREFIX, /* u64 */ | 285 | RDMA_NLDEV_ATTR_SUBNET_PREFIX, /* u64 */ |
| 286 | 286 | ||
| 287 | /* | ||
| 288 | * Local Identifier (LID), | ||
| 289 | * According to IB specification, It is 16-bit address assigned | ||
| 290 | * by the Subnet Manager. Extended to be 32-bit for OmniPath users. | ||
| 291 | */ | ||
| 292 | RDMA_NLDEV_ATTR_LID, /* u32 */ | ||
| 293 | RDMA_NLDEV_ATTR_SM_LID, /* u32 */ | ||
| 294 | |||
| 287 | RDMA_NLDEV_ATTR_MAX | 295 | RDMA_NLDEV_ATTR_MAX |
| 288 | }; | 296 | }; |
| 289 | #endif /* _UAPI_RDMA_NETLINK_H */ | 297 | #endif /* _UAPI_RDMA_NETLINK_H */ |