]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4a321e905f98dc94e931bacfc1c9b3185a68721
treeaf0c10e0fbe22e4dff900881996982b9643862cb
parent8ea26d2c174c4b4fea576c5de7a36fc6b4d8c6d4
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