xref: /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/prestera_span.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
262306a36Sopenharmony_ci/* Copyright (c) 2019-2020 Marvell International Ltd. All rights reserved. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _PRESTERA_SPAN_H_
562306a36Sopenharmony_ci#define _PRESTERA_SPAN_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#include <net/pkt_cls.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#define PRESTERA_SPAN_INVALID_ID -1
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_cistruct prestera_port;
1262306a36Sopenharmony_cistruct prestera_switch;
1362306a36Sopenharmony_cistruct prestera_flow_block_binding;
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciint prestera_span_init(struct prestera_switch *sw);
1662306a36Sopenharmony_civoid prestera_span_fini(struct prestera_switch *sw);
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciint prestera_span_rule_add(struct prestera_flow_block_binding *binding,
1962306a36Sopenharmony_ci			   struct prestera_port *to_port,
2062306a36Sopenharmony_ci			   bool ingress);
2162306a36Sopenharmony_ciint prestera_span_rule_del(struct prestera_flow_block_binding *binding,
2262306a36Sopenharmony_ci			   bool ingress);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#endif /* _PRESTERA_SPAN_H_ */
25

Indexes created Thu Nov 07 10:32:03 CST 2024