]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
net/mlx5: E-Switch, Properly refer to the esw manager vport
authorBodong Wang <bodong@mellanox.com>
Thu, 8 Nov 2018 20:37:04 +0000 (22:37 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 Feb 2019 01:25:56 +0000 (17:25 -0800)
commita1b3839ac4a4933c7c5167efd7b6b091130d11aa
treed469ac6c34d850adb78e7e1bf0ba379955c01ffd
parent86b39a66b75f2f360eef56bdb5ac37d5068a9b7d
net/mlx5: E-Switch, Properly refer to the esw manager vport

In SmartNIC mode, the eswitch manager is not necessarily the PF
(vport 0). Use a helper function to get the correct eswitch manager
vport number and cache on the eswitch instance for fast reference.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/linux/mlx5/vport.h