diff mbox series

net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb

Message ID 1584522343-5905-1-git-send-email-wenxu@ucloud.cn
State Awaiting Upstream
Delegated to: David Miller
Headers show
Series net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb | expand

Commit Message

wenxu March 18, 2020, 9:05 a.m. UTC
From: wenxu <wenxu@ucloud.cn>

The function mlx5e_rep_setup_ft_cb check chain_index is zero twice.

Signed-off-by: wenxu <wenxu@ucloud.cn>
---
 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Saeed Mahameed March 21, 2020, 3:08 a.m. UTC | #1
On Wed, 2020-03-18 at 17:05 +0800, wenxu@ucloud.cn wrote:
> From: wenxu <wenxu@ucloud.cn>
> 
> The function mlx5e_rep_setup_ft_cb check chain_index is zero twice.
> 
> Signed-off-by: wenxu <wenxu@ucloud.cn>
> ---

Applied to net-next-mlx5

Thanks.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
index a88c70b..fc0b0ea 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
@@ -1295,8 +1295,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