commit | ecc82c53f9a4ce08ba7df626a4262c86841ced8f | [log] [tgz] |
---|---|---|
author | Leon Romanovsky <leonro@mellanox.com> | Sun Jun 18 14:39:59 2017 +0300 |
committer | Leon Romanovsky <leon@kernel.org> | Thu Aug 10 13:21:54 2017 +0300 |
tree | d335b803fb7c7d11b744a42a00519d4487e1b018 | |
parent | 8030c8357a94ce6397dd8df6296925f0f4b1f9b7 [diff] |
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>