Linux Audio

Check our new training course

Loading...
 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
11struct prestera_port;
12struct prestera_switch;
13struct prestera_flow_block_binding;
14
15int prestera_span_init(struct prestera_switch *sw);
16void prestera_span_fini(struct prestera_switch *sw);
17
18int prestera_span_rule_add(struct prestera_flow_block_binding *binding,
19			   struct prestera_port *to_port,
20			   bool ingress);
21int prestera_span_rule_del(struct prestera_flow_block_binding *binding,
22			   bool ingress);
23
24#endif /* _PRESTERA_SPAN_H_ */