net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands
authorOmri Kahalon <omrik@mellanox.com>
Sun, 24 Feb 2019 14:31:08 +0000 (16:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:22:50 +0000 (07:22 +0200)
commit2340d1c4ede82c10cff60145d1c6c9b8add40ea6
treebc099401749e8b761ee3eebe16811a4191636f74
parent21b557cb27e2eadfb84b837f465556252c5376c4
net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands

[ Upstream commit eca4a928585ac08147e5cc8e2111ecbc6279ee31 ]

Traditionally, the PF (Physical Function) which resides on vport 0 was
the E-switch manager. Since the ECPF (Embedded CPU Physical Function),
which resides on vport 0xfffe, was introduced as the E-Switch manager,
the assumption that the E-switch manager is on vport 0 is incorrect.

Since the eswitch code already uses the actual vport value, all we
need is to always set other_vport=1.

Signed-off-by: Omri Kahalon <omrik@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c