]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitf377422044b2093c835e5f3717f8c8c58da1db1f
tree67e06b2c0c31546728ab219a73af7713ffcaa054
parent3e874cb1e0a376b0e682f82c1612ae89ab7867d7
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: f493f15534ec ("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