]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
RDMA/mlx5: Enable vport loopback when user context or QP mandate
authorMark Bloch <markb@mellanox.com>
Mon, 17 Sep 2018 10:30:49 +0000 (13:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 22 Sep 2018 00:20:59 +0000 (20:20 -0400)
commit0042f9e458a560e13c1da2211cf6429e0c7dd812
tree897ace30aed825ae85fe80034c4f27dc7e889d4c
parent175edba85634a8be0ddab5ee96d0b23d9f17627e
RDMA/mlx5: Enable vport loopback when user context or QP mandate

A user can create a QP which can accept loopback traffic, but that's not
enough. We need to enable loopback on the vport as well. Currently vport
loopback is enabled only when more than 1 users are using the IB device,
update the logic to consider whatever a QP which supports loopback was
created, if so enable vport loopback even if there is only a single user.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c