diff options
| author | Mark Bloch <mbloch@nvidia.com> | 2021-03-10 23:09:11 -0800 |
|---|---|---|
| committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-03-12 13:07:01 -0800 |
| commit | 59c904c8fffd903c1dae5fc6a402b88fa6dfc874 (patch) | |
| tree | d533f91618947111cdf6d6fe9d986f79296adaa5 /drivers | |
| parent | net/mlx5: E-Switch, Add match on vhca id to default send rules (diff) | |
| download | linux-59c904c8fffd903c1dae5fc6a402b88fa6dfc874.tar.gz linux-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 'drivers')
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c index fd5f8b830584..f6c0e7e05ad5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -3153,6 +3153,7 @@ void mlx5_eswitch_register_vport_reps(struct mlx5_eswitch *esw, esw->offloads.rep_ops[rep_type] = ops; mlx5_esw_for_all_reps(esw, i, rep) { if (likely(mlx5_eswitch_vport_has_rep(esw, i))) { + rep->esw = esw; rep_data = &rep->rep_data[rep_type]; atomic_set(&rep_data->state, REP_REGISTERED); } |
