OSDN Git Service

net/mlx5: E-Switch, Add eswitch pointer to each representor
authorMark Bloch <mbloch@nvidia.com>
Thu, 11 Mar 2021 07:09:11 +0000 (23:09 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 21:07:01 +0000 (13:07 -0800)
commit59c904c8fffd903c1dae5fc6a402b88fa6dfc874
treed533f91618947111cdf6d6fe9d986f79296adaa5
parent7d97822a8ceccf9b4b3297465f0b2c1cfd4161f9
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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/linux/mlx5/eswitch.h