]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7b2bff89fc62b61d561b9f1c2c1e7614799e2ae
treef8c9d3b3f698a6463911e6d2e3a363ed738f08ce
parent9a2dd07a610f7dcbef16065cb348801ac01c6e60
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