net/mlx5: E-switch, Move vport table functions to a new file
authorChris Mi <cmi@nvidia.com>
Mon, 31 Aug 2020 05:22:20 +0000 (13:22 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:36:01 +0000 (21:36 -0700)
commit4c7f40287aa5eb6ea8f3a6c3225ab5ebc6a45415
tree11370509ea5b1e8c47db329b1c4b7bad149b6dfa
parent0b35e0deb5bee7d4882356d6663522c1562a8321
net/mlx5: E-switch, Move vport table functions to a new file

Currently, the vport table functions are in common eswitch offload
file. This file is too big. Move the vport table create, delete and
lookup functions to a separate file. Put the file in esw directory.

Pre-step for generalizing its functionality for serving both the
mirroring and the sample features.

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/Makefile
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c