1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
3 
4 #ifndef _PRESTERA_SPAN_H_
5 #define _PRESTERA_SPAN_H_
6 
7 #include <net/pkt_cls.h>
8 
9 #define PRESTERA_SPAN_INVALID_ID -1
10 
11 struct prestera_port;
12 struct prestera_switch;
13 struct prestera_flow_block_binding;
14 
15 int prestera_span_init(struct prestera_switch *sw);
16 void prestera_span_fini(struct prestera_switch *sw);
17 
18 int prestera_span_rule_add(struct prestera_flow_block_binding *binding,
19 			   struct prestera_port *to_port,
20 			   bool ingress);
21 int prestera_span_rule_del(struct prestera_flow_block_binding *binding,
22 			   bool ingress);
23 
24 #endif /* _PRESTERA_SPAN_H_ */
25