OSDN Git Service

net/mlx5: E-switch, Generalize per vport table API
authorChris Mi <cmi@nvidia.com>
Mon, 31 Aug 2020 05:23:25 +0000 (13:23 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:36:01 +0000 (21:36 -0700)
commitc796bb7cd2307d5fb815e919b964bf2d65c95ec3
treeb89922596f89fa7db87b8a73c1d31e09a7843506
parent0a9e2307870bdb627421b4b0bbac04b1ab8e1688
net/mlx5: E-switch, Generalize per vport table API

Currently, per vport table was used only for port mirroring actions.
However, sample action will also require a per vport table instance.

Generalize the vport table API to work with multiple namespaces where
each namespace manages its own vport table instance.

Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c