OSDN Git Service

net/mlx5e: Don't use termination table when redundant
authorRoi Dayan <roid@nvidia.com>
Wed, 16 Nov 2022 07:47:37 +0000 (09:47 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 30 Nov 2022 05:09:45 +0000 (21:09 -0800)
commit14624d7247fcd0f3114a6f5f17b3c8d1020fbbb7
treeb9ade2aa1734ef39d26ba3bcad38d6f7f9296e2a
parent2d04e1ce52a8b2ba77820383c1305122e0238be2
net/mlx5e: Don't use termination table when redundant

Current code used termination table for each vport destination
while it's only required for hairpin, i.e. uplink to uplink, or
when vlan push on rx action being used.
Fix to skip using termination table for vport destinations that
do not require it.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c