]> git.baikalelectronics.ru Git - kernel.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)
commit67a4d184bf52488e7592e6a260a3db2d4746ca09
treee10d6a0c0b612aecd0614340db6ac3d9e11c2ad7
parentc5fb6573b4ef5f960ac3049f881e1859240947ad
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