]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Don't cache tunnel offloads capability
authorParav Pandit <parav@nvidia.com>
Fri, 12 Mar 2021 13:21:29 +0000 (07:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:48 +0000 (13:33 +0100)
commit6c427eb7a278f6c5bc131db19c40f7ecdf63b857
tree136a64e68a94b23c74e037cf41c7fcf7a3af66df
parentb0a1a4babd36456a3bab3fdf92d84c99c8b2d7de
net/mlx5e: Don't cache tunnel offloads capability

[ Upstream commit ef1d1cb6e5539398f92495d00c9f3b30c5438386 ]

When mlx5e attaches again after device health recovery, the device
capabilities might have changed by the eswitch manager.

For example in one flow when ECPF changes the eswitch mode between
legacy and switchdev, it updates the flow table tunnel capability.

The cached value is only used in one place, so just check the capability
there instead.

Fixes: d40a2f36915a ("net/mlx5: Enable host PF HCA after eswitch is initialized")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c