OSDN Git Service

RDMA/mlx5: Move to single device multiport ports in switchdev mode
authorMark Bloch <markb@mellanox.com>
Thu, 28 Mar 2019 13:27:41 +0000 (15:27 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Apr 2019 18:05:39 +0000 (15:05 -0300)
commit26628e2d58c910fa724312c6bcc3f4d12c9e805e
treec8eb3c40e7d8663ee4097ef757fb8717bcb4e786
parenta989ea01cb10a12bcf339ddcbbea9c49e098609f
RDMA/mlx5: Move to single device multiport ports in switchdev mode

Move from IB device (representor) per virtual function to single IB device
with port per virtual function (port 1 represents the uplink). As number
of ports is a static property of an IB device, declare the IB device with
as many port as the possible according to the PCI bus.

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
drivers/infiniband/hw/mlx5/mlx5_ib.h