]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/mlx5: Fail early if user tries to create flows on IB representors
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 10 Dec 2018 09:19:49 +0000 (11:19 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Dec 2018 21:38:16 +0000 (14:38 -0700)
commita1462351b590a4fa8eed6e5bf14245425635be0d
treee10d6a0c0b612aecd0614340db6ac3d9e11c2ad7
parentf94e02ddfd88a511ed64fb68905e35d727635fea
RDMA/mlx5: Fail early if user tries to create flows on IB representors

IB representors don't support creation of RAW ethernet QP flows.  Disable
them by reusing existing RDMA/core support macros.  We do it for both
creation and matcher because latter is not usable if no flow creation is
available.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/flow.c
include/rdma/uverbs_ioctl.h