diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-04-02 21:50:34 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-08 19:05:25 +0300 |
commit | 9e886b39a73ad0219b3f2ff574c135d770118a6b (patch) | |
tree | f8c9d3b3f698a6463911e6d2e3a363ed738f08ce /include/uapi/rdma/rdma_netlink.h | |
parent | c87e65cfb97c7f325132a68288ed76ba7bdcd2c6 (diff) | |
download | linux-9e886b39a73ad0219b3f2ff574c135d770118a6b.tar.xz |
RDMA/nldev: Return device protocol
Add new RDMA_NLDEV_ATTR_DEV_PROTOCOL attribute to give ability for UDEV
rules create IB device stable names based on link type protocol. The
assumption that devices like mlx4 with duality in their link type under
one IB device struct won't be allowed in the future.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/rdma_netlink.h')
-rw-r--r-- | include/uapi/rdma/rdma_netlink.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h index 3a231a989974..d49f491341f6 100644 --- a/include/uapi/rdma/rdma_netlink.h +++ b/include/uapi/rdma/rdma_netlink.h @@ -471,6 +471,11 @@ enum rdma_nldev_attr { RDMA_NLDEV_SYS_ATTR_NETNS_MODE, /* u8 */ /* + * Device protocol, e.g. ib, iw, usnic, roce and opa + */ + RDMA_NLDEV_ATTR_DEV_PROTOCOL, /* string */ + + /* * Always the end */ RDMA_NLDEV_ATTR_MAX |