]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5: Disable VF tunnel TX offload if ignore_flow_level isn't supported
authorMaor Dickman <maord@nvidia.com>
Mon, 1 Mar 2021 11:07:08 +0000 (13:07 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:55 +0000 (11:01 -0800)
commitf574531a0b77261478408e9c8f70d96dc701a35a
tree850d17c7821c70dc9dc4d22bcd53eb19d5723072
parent1e74152ed065ef491c30ccbbe119992e3e5200be
net/mlx5: Disable VF tunnel TX offload if ignore_flow_level isn't supported

VF tunnel TX traffic offload is adding flow which forward to flow
tables with lower level, which isn't support on all FW versions
and may cause firmware to fail with syndrome.

Fixed by enabling VF tunnel TX offload only if flow table capability
ignore_flow_level is enabled.

Fixes: 10742efc20a4 ("net/mlx5e: VF tunnel TX traffic offloading")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c