net/mlx5: E-Switch, set flow source for send to uplink rule
authorAriel Levkovich <lariel@nvidia.com>
Tue, 3 Aug 2021 23:19:51 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:24 +0000 (13:49 -0700)
commitd04442540372b1c0ae0e13eaca5851cb0a4464af
tree75f2bb4d248c1b57f311644379bd9216b04b3370
parentc446d9da64075b1c8b55df9acaae72c7686c59a5
net/mlx5: E-Switch, set flow source for send to uplink rule

Set the flow source param to local vport for the uplink rep
send-to-vport rule.

This will comply with the recent changes in SW steering that
use the flow source as an indication for the rule type - rx or tx.

Since the uplink send-to-vport rule is forwarding traffic to the wire
it has to indicate that it is an sx rule and can't use the any port
value in the flow source.

Signed-off-by: Ariel Levkovich <lariel@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