Skip to content

Commit c1b03c2

Browse files
mark-blochjgunthorpe
authored andcommitted
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: a146235 ("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>
1 parent 425784a commit c1b03c2

File tree

1 file changed

+1
-2
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+1
-2
lines changed

drivers/infiniband/hw/mlx5/flow.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ const struct uapi_definition mlx5_ib_flow_defs[] = {
630630
UAPI_DEF_IS_OBJ_SUPPORTED(flow_is_supported)),
631631
UAPI_DEF_CHAIN_OBJ_TREE(
632632
UVERBS_OBJECT_FLOW,
633-
&mlx5_ib_fs,
634-
UAPI_DEF_IS_OBJ_SUPPORTED(flow_is_supported)),
633+
&mlx5_ib_fs),
635634
UAPI_DEF_CHAIN_OBJ_TREE(UVERBS_OBJECT_FLOW_ACTION,
636635
&mlx5_ib_flow_actions),
637636
{},

0 commit comments

Comments
 (0)