]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/core: Add and expose static device index
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 18 Jun 2017 11:39:59 +0000 (14:39 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 10 Aug 2017 10:21:54 +0000 (13:21 +0300)
commitecc82c53f9a4ce08ba7df626a4262c86841ced8f
treed335b803fb7c7d11b744a42a00519d4487e1b018
parent8030c8357a94ce6397dd8df6296925f0f4b1f9b7
RDMA/core: Add and expose static device index

This patch adds static device index in similar fashion to
already available in netdev world (struct net->ifindex).

In downstream patches, the RDMA nelink will use this idx-to-ib_device
conversion, so as part of this commit, we are exposing the translation
function to be visible for IB/core users.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h