* [PATCH] net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb
@ 2020-03-18 9:05 wenxu
2020-03-21 3:08 ` Saeed Mahameed
0 siblings, 1 reply; 2+ messages in thread
From: wenxu @ 2020-03-18 9:05 UTC (permalink / raw)
To: saeedm; +Cc: netdev
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(-)
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
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb
2020-03-18 9:05 [PATCH] net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb wenxu
@ 2020-03-21 3:08 ` Saeed Mahameed
0 siblings, 0 replies; 2+ messages in thread
From: Saeed Mahameed @ 2020-03-21 3:08 UTC (permalink / raw)
To: wenxu; +Cc: netdev
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-21 3:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18 9:05 [PATCH] net/mlx5e: remove duplicated check chain_index in mlx5e_rep_setup_ft_cb wenxu
2020-03-21 3:08 ` Saeed Mahameed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).