net/mlx5: Lag, set different uplink vport metadata in multiport eswitch mode
authorRoi Dayan <roid@nvidia.com>
Wed, 30 Nov 2022 13:12:50 +0000 (15:12 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 14 Feb 2023 22:08:25 +0000 (14:08 -0800)
commit73af3711c7028286136bb7e9422b19f5a016626d
tree1aeb2b6dc1e7c379e225fe54cc22000743e3669c
parentab9fc405ffd9690266039662286ed69f98c11738
net/mlx5: Lag, set different uplink vport metadata in multiport eswitch mode

In a follow-up commit multiport eswitch mode will use a shared fdb.
In shared fdb there is a single eswitch fdb and traffic could come from any
port. to distinguish between the ports set a different metadata per uplink port.

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/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
include/linux/mlx5/driver.h