]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Determine source port properly for vlan push action
authorDmytro Linkin <dmitrolin@mellanox.com>
Wed, 4 Sep 2019 12:32:49 +0000 (12:32 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 29 Oct 2019 23:27:17 +0000 (16:27 -0700)
commitd5dbcc4e87bc8444bd2f1ca4b8f787e1e5677ec2
tree367d6efa7a2966bd0ca22823361426a52021a706
parent6dfef396ea13873ae9066ee2e0ad6ee364031fe2
net/mlx5e: Determine source port properly for vlan push action

Termination tables are used for vlan push actions on uplink ports.
To support RoCE dual port the source port value was placed in a register.
Fix the code to use an API method returning the source port according to
the FW capabilities.

Fixes: 10caabdaad5a ("net/mlx5e: Use termination table for VLAN push actions")
Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Reviewed-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c