Commit d602be22 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed

net/mlx5: E-Switch, Remove redundant arg ignore_flow_lvl

The arg is always passed as true and thus redundant.
Signed-off-by: default avatarRoi Dayan <roid@nvidia.com>
Reviewed-by: default avatarShay Drory <shayd@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 58f6d9d0
...@@ -375,7 +375,6 @@ esw_setup_indir_table(struct mlx5_flow_destination *dest, ...@@ -375,7 +375,6 @@ esw_setup_indir_table(struct mlx5_flow_destination *dest,
struct mlx5_flow_act *flow_act, struct mlx5_flow_act *flow_act,
struct mlx5_eswitch *esw, struct mlx5_eswitch *esw,
struct mlx5_flow_attr *attr, struct mlx5_flow_attr *attr,
bool ignore_flow_lvl,
int *i) int *i)
{ {
struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr;
...@@ -385,7 +384,6 @@ esw_setup_indir_table(struct mlx5_flow_destination *dest, ...@@ -385,7 +384,6 @@ esw_setup_indir_table(struct mlx5_flow_destination *dest,
return -EOPNOTSUPP; return -EOPNOTSUPP;
for (j = esw_attr->split_count; j < esw_attr->out_count; j++, (*i)++) { for (j = esw_attr->split_count; j < esw_attr->out_count; j++, (*i)++) {
if (ignore_flow_lvl)
flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL;
dest[*i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE; dest[*i].type = MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE;
...@@ -569,7 +567,7 @@ esw_setup_dests(struct mlx5_flow_destination *dest, ...@@ -569,7 +567,7 @@ esw_setup_dests(struct mlx5_flow_destination *dest,
err = esw_setup_mtu_dest(dest, &attr->meter_attr, *i); err = esw_setup_mtu_dest(dest, &attr->meter_attr, *i);
(*i)++; (*i)++;
} else if (esw_is_indir_table(esw, attr)) { } else if (esw_is_indir_table(esw, attr)) {
err = esw_setup_indir_table(dest, flow_act, esw, attr, true, i); err = esw_setup_indir_table(dest, flow_act, esw, attr, i);
} else if (esw_is_chain_src_port_rewrite(esw, esw_attr)) { } else if (esw_is_chain_src_port_rewrite(esw, esw_attr)) {
err = esw_setup_chain_src_port_rewrite(dest, flow_act, esw, chains, attr, i); err = esw_setup_chain_src_port_rewrite(dest, flow_act, esw, chains, attr, i);
} else { } else {
......
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