]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
rdma: update uapi headers
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 18 May 2019 13:37:58 +0000 (06:37 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 18 May 2019 13:38:39 +0000 (06:38 -0700)
Based on 5.2-rc
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/include/uapi/rdma/rdma_netlink.h

index 23a90ad52485c713b1f3c15ef70473b04861407c..41cfa84c5b694303c2545fab46757b906851248d 100644 (file)
@@ -49,17 +49,6 @@ enum {
        RDMA_NL_IWPM_NUM_OPS
 };
 
-struct rdma_cm_id_stats {
-       __u32   qp_num;
-       __u32   bound_dev_if;
-       __u32   port_space;
-       __s32   pid;
-       __u8    cm_state;
-       __u8    node_type;
-       __u8    port_num;
-       __u8    qp_type;
-};
-
 enum {
        IWPM_NLA_REG_PID_UNSPEC = 0,
        IWPM_NLA_REG_PID_SEQ,
@@ -261,7 +250,10 @@ enum rdma_nldev_command {
 
        RDMA_NLDEV_CMD_PORT_GET, /* can dump */
 
-       /* 6 - 8 are free to use */
+       RDMA_NLDEV_CMD_SYS_GET,
+       RDMA_NLDEV_CMD_SYS_SET,
+
+       /* 8 is free to use */
 
        RDMA_NLDEV_CMD_RES_GET = 9, /* can dump */
 
@@ -472,6 +464,21 @@ enum rdma_nldev_attr {
         */
        RDMA_NLDEV_ATTR_LINK_TYPE,              /* string */
 
+       /*
+        * net namespace mode for rdma subsystem:
+        * either shared or exclusive among multiple net namespaces.
+        */
+       RDMA_NLDEV_SYS_ATTR_NETNS_MODE,         /* u8 */
+       /*
+        * Device protocol, e.g. ib, iw, usnic, roce and opa
+        */
+       RDMA_NLDEV_ATTR_DEV_PROTOCOL,           /* string */
+
+       /*
+        * File descriptor handle of the net namespace object
+        */
+       RDMA_NLDEV_NET_NS_FD,                   /* u32 */
+
        /*
         * Always the end
         */