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)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:42 +0000 (12:24 -0700)
commiteca4a928585ac08147e5cc8e2111ecbc6279ee31
tree3f078bfaaf3d70d52e0d9888178227dfbd82ff95
parent5c1d260ed10cf08dd7a0299c103ad0a3f9a9f7a1
net/mlx5: E-Switch, Fix esw manager vport indication for more vport commands

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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c