]> 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)
commit2d25a3599480e252197d7694b9ef77b7356a03fd
tree67e06b2c0c31546728ab219a73af7713ffcaa054
parent09be3e023b14ea83ec92f1feb43ec7d8532a725d
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: 98b8f7026a3a ("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