RDMA/mlx5: Fix flow creation on representors
authorMark Bloch <markb@mellanox.com>
Thu, 24 Jan 2019 12:33:32 +0000 (14:33 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 25 Jan 2019 18:58:06 +0000 (11:58 -0700)
commitc1b03c25f5c1503e2db3ac1c0e12ef3e054fa065
tree3c5753c2fedfdfc0862110b99ab29029530a0c7c
parent425784aa5b029eeb80498c73a68f62c3ad1d3b3f
RDMA/mlx5: Fix flow creation on representors

The intention of the flow_is_supported was to disable the entire tree and
methods that allow raw flow creation, but the grammar syntax has this
disable the entire UVERBS_FLOW object. Since the method requires a
MLX5_IB_OBJECT_FLOW_MATCHER there is no need to do anything, as it is
automatically disabled when matchers are disabled.

This restores the ability to create flow steering rules on representors
via regular verbs.

Fixes: a1462351b590 ("RDMA/mlx5: Fail early if user tries to create flows on IB representors")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/flow.c