OSDN Git Service

RDMA/mlx5: Move ports allocation to outside of INIT stage
authorMark Bloch <markb@mellanox.com>
Thu, 28 Mar 2019 13:27:35 +0000 (15:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Apr 2019 18:05:39 +0000 (15:05 -0300)
commitda796ccb3e0eba24b15beedb168178c9b74ce6f2
tree318a90b9ab3e06d417dbc9620afdfa238d560bab
parent4a6dc8552ab2f670fdff317a5ac1bc42f85a8772
RDMA/mlx5: Move ports allocation to outside of INIT stage

In downstream patches we will need access to the ports before doing any
stages, in order to set net device per representor.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/infiniband/hw/mlx5/main.c