aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBodong Wang <bodong@mellanox.com>2018-11-08 22:37:04 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2019-02-15 17:25:56 -0800
commita1b3839ac4a4933c7c5167efd7b6b091130d11aa (patch)
treed469ac6c34d850adb78e7e1bf0ba379955c01ffd /include/linux
parentnet/mlx5: Correctly set LAG mode for ECPF (diff)
downloadlinux-dev-a1b3839ac4a4933c7c5167efd7b6b091130d11aa.tar.xz
linux-dev-a1b3839ac4a4933c7c5167efd7b6b091130d11aa.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/vport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h
index 3bc05449ac39..b67bcc95ab5d 100644
--- a/include/linux/mlx5/vport.h
+++ b/include/linux/mlx5/vport.h
@@ -52,6 +52,8 @@ enum {
};
enum {
+ MLX5_VPORT_PF = 0x0,
+ MLX5_VPORT_ECPF = 0xfffe,
MLX5_VPORT_UPLINK = 0xffff
};