History

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.

Leon Romanovsky committed 9 years ago

Commit 80a06dd1 parent 12026fb2 files · +16 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/rdma_netlink.h+8−0
@@ -284,6 +284,14 @@ enum rdma_nldev_attr { · 283 unmodified lines
284284 */
285285 RDMA_NLDEV_ATTR_SUBNET_PREFIX, /* u64 */
286286
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+
287295 RDMA_NLDEV_ATTR_MAX
288296 };
289297 #endif /* _UAPI_RDMA_NETLINK_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t