net/mlx5: E-Switch, Set destination vport vhca id only when merged eswitch is supported
authorMaor Dickman <maord@nvidia.com>
Tue, 22 Jun 2021 14:07:02 +0000 (17:07 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 27 Jul 2021 23:10:02 +0000 (16:10 -0700)
commitc671972534c6f7fce789ac8156a2bc3bd146f806
tree56d9865ef9d54ea0d1af4e63fbe399e8f674f013
parent90b22b9bcd242a3ba238f2c6f7eab771799001f8
net/mlx5: E-Switch, Set destination vport vhca id only when merged eswitch is supported

Destination vport vhca id is valid flag is set only merged eswitch isn't supported.
Change destination vport vhca id value to be set also only when merged eswitch
is supported.

Fixes: e4ad91f23f10 ("net/mlx5e: Split offloaded eswitch TC rules for port mirroring")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c