Commit 4c7cea2f authored by Yevgeny Kliteynik's avatar Yevgeny Kliteynik Committed by Saeed Mahameed

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: default avatarYevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent c21a49b3
...@@ -677,9 +677,12 @@ int mlx5dr_actions_build_ste_arr(struct mlx5dr_matcher *matcher, ...@@ -677,9 +677,12 @@ int mlx5dr_actions_build_ste_arr(struct mlx5dr_matcher *matcher,
goto out_invalid_arg; goto out_invalid_arg;
} }
if (action->dest_tbl.tbl->level <= matcher->tbl->level) { 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, mlx5dr_dbg(dmn,
"Destination table level should be higher than source table\n"); "Connecting table at level %d to a destination table at level %d\n",
goto out_invalid_arg; matcher->tbl->level,
action->dest_tbl.tbl->level);
} }
attr.final_icm_addr = rx_rule ? attr.final_icm_addr = rx_rule ?
action->dest_tbl.tbl->rx.s_anchor->chunk->icm_addr : action->dest_tbl.tbl->rx.s_anchor->chunk->icm_addr :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment