]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use shared mappings for restoring from metadata
authorRoi Dayan <roid@nvidia.com>
Tue, 3 Aug 2021 23:19:53 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:24 +0000 (13:49 -0700)
commita3aa94f575bd5d1eeb8bcbabef8de266ffba8eb2
tree69cf86dd820da6681aa12c2f8737b95a9bb3ab97
parentde50e0c531dc8a1b3b60c279d9b39434ac86d360
net/mlx5e: Use shared mappings for restoring from metadata

FTEs are added with mapped metadata which is saved per eswitch.
When uplink reps are bonded and we are in a single FDB mode,
we could fail to find metadata which was stored on one eswitch mapping
but not the other or with a different id.
To resolve this issue use shared mapping between eswitch ports.
We do not have any conflict using a single mapping, for a type,
between the ports.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c