Skip to content

Commit

Permalink
net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb
Browse files Browse the repository at this point in the history
The function mlx5e_rep_setup_ft_cb check chain_index is zero twice.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
wenxu authored and Saeed Mahameed committed Mar 26, 2020
1 parent 49397b8 commit 046826c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,8 +1246,7 @@ static int mlx5e_rep_setup_ft_cb(enum tc_setup_type type, void *type_data,
case TC_SETUP_CLSFLOWER:
memcpy(&tmp, f, sizeof(*f));

if (!mlx5_esw_chains_prios_supported(esw) ||
tmp.common.chain_index)
if (!mlx5_esw_chains_prios_supported(esw))
return -EOPNOTSUPP;

/* Re-use tc offload path by moving the ft flow to the
Expand Down

0 comments on commit 046826c

Please sign in to comment.