OSDN Git Service

RDMA/nldev: Return device protocol
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 2 Apr 2019 18:50:34 +0000 (21:50 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Apr 2019 16:05:25 +0000 (13:05 -0300)
commit9e886b39a73ad0219b3f2ff574c135d770118a6b
treef8c9d3b3f698a6463911e6d2e3a363ed738f08ce
parentc87e65cfb97c7f325132a68288ed76ba7bdcd2c6
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>
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h