1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2020 Marvell International Ltd. All rights reserved. */
4 #ifndef _PRESTERA_FLOW_H_
5 #define _PRESTERA_FLOW_H_
7 #include <net/flow_offload.h>
10 struct prestera_switch;
12 struct prestera_flow_block_binding {
13 struct list_head list;
14 struct prestera_port *port;
18 struct prestera_flow_block {
19 struct list_head binding_list;
20 struct prestera_switch *sw;
22 struct prestera_acl_ruleset *ruleset_zero;
23 struct flow_block_cb *block_cb;
24 struct list_head template_list;
25 unsigned int rule_count;
28 int prestera_flow_block_setup(struct prestera_port *port,
29 struct flow_block_offload *f);
31 #endif /* _PRESTERA_FLOW_H_ */