]> 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)
commit15b8c0d3743fe865c3046eedb37cdcf8e5898c85
tree367d6efa7a2966bd0ca22823361426a52021a706
parent09ca465341c1e16c35a74a3be47547df215ec25d
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: 11a71d9177e8 ("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