summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2021-03-10 23:09:11 -0800
committerSaeed Mahameed <saeedm@nvidia.com>2021-03-12 13:07:01 -0800
commit59c904c8fffd903c1dae5fc6a402b88fa6dfc874 (patch)
treed533f91618947111cdf6d6fe9d986f79296adaa5 /include/linux/mlx5
parent7d97822a8ceccf9b4b3297465f0b2c1cfd4161f9 (diff)
downloadlinux-stable-59c904c8fffd903c1dae5fc6a402b88fa6dfc874.tar.gz
linux-stable-59c904c8fffd903c1dae5fc6a402b88fa6dfc874.tar.bz2
linux-stable-59c904c8fffd903c1dae5fc6a402b88fa6dfc874.zip
net/mlx5: E-Switch, Add eswitch pointer to each representor
Store the managing E-Switch of each representor. This will be used when a representor is created on eswitch manager 0 but the vport belongs to eswitch manager 1. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/eswitch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/eswitch.h b/include/linux/mlx5/eswitch.h
index 994c2c8cb4fd..72d480df2a03 100644
--- a/include/linux/mlx5/eswitch.h
+++ b/include/linux/mlx5/eswitch.h
@@ -48,6 +48,7 @@ struct mlx5_eswitch_rep {
/* Only IB rep is using vport_index */
u16 vport_index;
u32 vlan_refcount;
+ struct mlx5_eswitch *esw;
};
void mlx5_eswitch_register_vport_reps(struct mlx5_eswitch *esw,