]> git.baikalelectronics.ru Git - kernel.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)
commitc5e7f62635278ae26614399e6fdc8c1162a02990
tree367d6efa7a2966bd0ca22823361426a52021a706
parentae4b5e486e1912e68164e36e8491f07f09fc1dc5
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: fb7a82126eb6 ("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