lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 29 Mar 2020 14:56:00 +0800 From: wenxu@...oud.cn To: saeedm@...lanox.com, paulb@...lanox.com Cc: netdev@...r.kernel.org Subject: [PATCH net-next] net/mlx5e: avoid check the hw_stats of flow_action for FT flow From: wenxu <wenxu@...oud.cn> The hw_stats in flow_action can't be supported in nftable flowtables. This check will lead the nft flowtable offload failed. So don't check the hw_stats of flow_action for FT flow. Signed-off-by: wenxu <wenxu@...oud.cn> --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 901b5fa..4666015 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -3703,7 +3703,8 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, if (!flow_action_has_entries(flow_action)) return -EINVAL; - if (!flow_action_hw_stats_check(flow_action, extack, + if (!ft_flow && + !flow_action_hw_stats_check(flow_action, extack, FLOW_ACTION_HW_STATS_DELAYED_BIT)) return -EOPNOTSUPP; -- 1.8.3.1
Powered by blists - more mailing lists