RDMA/core: Assign device ifindex before publishing the device
authorParav Pandit <parav@mellanox.com>
Thu, 6 Sep 2018 07:58:57 +0000 (10:58 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 20:34:38 +0000 (14:34 -0600)
commit273993509f05623934dda14a56237738149b2906
treebb6f53fa632a97018c44b3d937a9bc0e71cf2652
parentc715a39541bb399eb03d728a996b224d90ce1336
RDMA/core: Assign device ifindex before publishing the device

Even though device->ifindex is assigned before adding the device in the
list which is read by netlink flow, it is better to assign rdma device
index before publishing the device in the system to users and clients.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c