diff options
author | Yevgeny Kliteynik <kliteyn@mellanox.com> | 2020-01-20 12:51:36 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-01-23 09:28:37 +0300 |
commit | 4c7cea2f31f1dde9c578e4729e0d34f340052037 (patch) | |
tree | 70e08755052cee1fc3e8bfa2e83b008c6958d2ca /drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | |
parent | c21a49b360e16657f42f1a9269c3aa714738fec7 (diff) | |
download | linux-4c7cea2f31f1dde9c578e4729e0d34f340052037.tar.xz |
net/mlx5: DR, Allow connecting flow table to a lower/same level table
Allow connecting SW steering source table to a lower/same level
destination table.
Lifting this limitation is required to support Connection Tracking.
Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c index 286fcec5eff2..6dec2a550a10 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c @@ -677,9 +677,12 @@ int mlx5dr_actions_build_ste_arr(struct mlx5dr_matcher *matcher, goto out_invalid_arg; } if (action->dest_tbl.tbl->level <= matcher->tbl->level) { + mlx5_core_warn_once(dmn->mdev, + "Connecting table to a lower/same level destination table\n"); mlx5dr_dbg(dmn, - "Destination table level should be higher than source table\n"); - goto out_invalid_arg; + "Connecting table at level %d to a destination table at level %d\n", + matcher->tbl->level, + action->dest_tbl.tbl->level); } attr.final_icm_addr = rx_rule ? action->dest_tbl.tbl->rx.s_anchor->chunk->icm_addr : |