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)
commit175edba85634a8be0ddab5ee96d0b23d9f17627e
tree60e3d95f83766bb19bd0149eda7e7e8abfaf244f
parenta560f1d9af4be84ee91d1a47382cacf620eb4a79
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