]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix adding encap rules to slow path
authorRoi Dayan <roid@nvidia.com>
Wed, 19 May 2021 07:00:27 +0000 (10:00 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Jun 2021 01:30:20 +0000 (18:30 -0700)
commit2a2c84facd4af661d71be6e81fd9d490ac7fdc53
tree06534839f066833b4129cffc0823f57cff0652a5
parentafe93f71b5d3cdae7209213ec8ef25210b837b93
net/mlx5e: Fix adding encap rules to slow path

On some devices the ignore flow level cap is not supported and we
shouldn't use it. Setting the dest ft with mlx5_chains_get_tc_end_ft()
already gives the correct end ft if ignore flow level cap is supported
or not.

Fixes: 39ac237ce009 ("net/mlx5: E-Switch, Refactor chains and priorities")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.h