net/mlx5: E-Switch, Refactor eswitch ingress acl codes
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / esw / acl / ofld.h
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2020 Mellanox Technologies Inc. All rights reserved. */
3
4 #ifndef __MLX5_ESWITCH_ACL_OFLD_H__
5 #define __MLX5_ESWITCH_ACL_OFLD_H__
6
7 #include "eswitch.h"
8
9 /* Eswitch acl egress external APIs */
10 int esw_acl_egress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
11 void esw_acl_egress_ofld_cleanup(struct mlx5_vport *vport);
12
13 /* Eswitch acl ingress external APIs */
14 int esw_acl_ingress_ofld_setup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
15 void esw_acl_ingress_ofld_cleanup(struct mlx5_eswitch *esw, struct mlx5_vport *vport);
16
17 #endif /* __MLX5_ESWITCH_ACL_OFLD_H__ */