]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Allow creating RAW ethernet QP with loopback support
authorMark Bloch <markb@mellanox.com>
Mon, 17 Sep 2018 10:30:48 +0000 (13:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 22 Sep 2018 00:20:59 +0000 (20:20 -0400)
commit7180ca928633eddd52eb4a3dee607d510cb0f9a7
tree60e3d95f83766bb19bd0149eda7e7e8abfaf244f
parent55e3dd3057ee2e4a3958338deb3dab4f730afd61
RDMA/mlx5: Allow creating RAW ethernet QP with loopback support

Expose two new flags:
MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_UC
MLX5_QP_FLAG_TIR_ALLOW_SELF_LB_MC

Those flags can be used at creation time in order to allow a QP
to be able to receive loopback traffic (unicast and multicast).
We store the state in the QP to be used on the destroy path
to indicate with which flags the QP was created with.

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/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h