diff options
| author | 2021-03-10 23:09:11 -0800 | |
|---|---|---|
| committer | 2021-03-12 13:07:01 -0800 | |
| commit | 59c904c8fffd903c1dae5fc6a402b88fa6dfc874 (patch) | |
| tree | d533f91618947111cdf6d6fe9d986f79296adaa5 /include/linux/mlx5 | |
| parent | net/mlx5: E-Switch, Add match on vhca id to default send rules (diff) | |
| download | linux-dev-59c904c8fffd903c1dae5fc6a402b88fa6dfc874.tar.xz linux-dev-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.h | 1 |
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, |
