History

RDMA/core: Add interface to read device namespace sharing mode

Add an interface via netlink command to query whether rdma devices are shared among multiple net namespaces or not. When using RDMAtool, it can be queried as, $rdma system show netns netns shared

Parav Pandit committed 7 years ago

Commit cb7e0e11 parent 37eeab54 files · +42 −2Browse files

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

Unified · Split

include/uapi/rdma/rdma_netlink.h+8−1
@@ -261,7 +261,8 @@ enum rdma_nldev_command { · 260 unmodified lines
261261
262262 RDMA_NLDEV_CMD_PORT_GET, /* can dump */
263263
264− /* 6 - 8 are free to use */
264+ RDMA_NLDEV_CMD_SYS_GET, /* can dump */
265+ /* 7 - 8 are free to use */
265266
266267 RDMA_NLDEV_CMD_RES_GET = 9, /* can dump */
267268
@@ -472,6 +473,12 @@ enum rdma_nldev_attr { · 204 unmodified lines
472473 */
473474 RDMA_NLDEV_ATTR_LINK_TYPE, /* string */
474475
476+ /*
477+ * net namespace mode for rdma subsystem:
478+ * either shared or exclusive among multiple net namespaces.
479+ */
480+ RDMA_NLDEV_SYS_ATTR_NETNS_MODE, /* u8 */
481+
475482 /*
476483 * Always the end
477484 */

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