net/mlx5: E-Switch, Refactor eswitch egress acl codes
authorVu Pham <vuhuong@mellanox.com>
Wed, 6 Nov 2019 17:57:12 +0000 (09:57 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 01:13:46 +0000 (18:13 -0700)
commitea651a86d46895a8b342664db66c3dee3412ad34
treeaf0c10e0fbe22e4dff900881996982b9643862cb
parentdc0f3ed1973f101508957b59e529e03da1349e09
net/mlx5: E-Switch, Refactor eswitch egress acl codes

Refactor the egress acl codes so that offloads and legacy modes
can configure specifically their own needs of egress acl table,
groups and rules. While at it, restructure the eswitch egress
acl codes into eswitch directory and different files:
. Acl egress helper functions to acl_helper.c/h
. Acl egress functions used in offloads mode to acl_egress_ofld.c
. Acl egress functions used in legacy mode to acl_egress_lgy.c

This patch does not change any functionality.

Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_lgcy.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/egress_ofld.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/helper.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/lgcy.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c