net/mlx5: E-Switch, Refactor send to vport to be more generic
authorMark Bloch <mbloch@nvidia.com>
Thu, 11 Mar 2021 07:09:13 +0000 (23:09 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 21:07:46 +0000 (13:07 -0800)
commit3a46f4fb55ffd46e475e3fc53b1252f722cf647e
tree37b62574ba96d51b7224ec3935013c2a82dd1e09
parent658cfceb6267974056cb50adde8a93a15967c665
net/mlx5: E-Switch, Refactor send to vport to be more generic

Now that each representor stores a pointer to the managing E-Switch
use that information when creating the send-to-vport rules.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/infiniband/hw/mlx5/ib_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/linux/mlx5/eswitch.h