]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Offload rule only when all encaps are valid
authorChris Mi <cmi@nvidia.com>
Thu, 17 Nov 2022 05:45:45 +0000 (07:45 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Nov 2022 02:14:35 +0000 (18:14 -0800)
commit75bf23a22e271845874b67dfadb1819701706fb6
tree67e06b2c0c31546728ab219a73af7713ffcaa054
parent5270c005da2551430a612a5cc0aa1df21f1990ae
net/mlx5e: Offload rule only when all encaps are valid

The cited commit adds a for loop to support multiple encapsulations.
But it only checks if the last encap is valid.

Fix it by setting slow path flag when one of the encap is invalid.

Fixes: 5e6b075108dd ("net/mlx5e: Move flow attr reformat action bit to per dest flags")
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c