1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
4 #ifndef _PRESTERA_SPAN_H_
5 #define _PRESTERA_SPAN_H_
7 #include <net/pkt_cls.h>
9 #define PRESTERA_SPAN_INVALID_ID -1
11 struct prestera_switch;
12 struct prestera_flow_block;
14 int prestera_span_init(struct prestera_switch *sw);
15 void prestera_span_fini(struct prestera_switch *sw);
16 int prestera_span_replace(struct prestera_flow_block *block,
17 struct tc_cls_matchall_offload *f);
18 void prestera_span_destroy(struct prestera_flow_block *block);
20 #endif /* _PRESTERA_SPAN_H_ */