linux/drivers/net/ethernet/marvell/prestera/prestera_span.c

// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
/* Copyright (c) 2020 Marvell International Ltd. All rights reserved */

#include <linux/kernel.h>
#include <linux/list.h>

#include "prestera.h"
#include "prestera_hw.h"
#include "prestera_acl.h"
#include "prestera_flow.h"
#include "prestera_span.h"

struct prestera_span_entry {};

struct prestera_span {};

static struct prestera_span_entry *
prestera_span_entry_create(struct prestera_port *port, u8 span_id)
{}

static void prestera_span_entry_del(struct prestera_span_entry *entry)
{}

static struct prestera_span_entry *
prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id)
{}

static struct prestera_span_entry *
prestera_span_entry_find_by_port(struct prestera_span *span,
				 struct prestera_port *port)
{}

static int prestera_span_get(struct prestera_port *port, u8 *span_id)
{}

static int prestera_span_put(struct prestera_switch *sw, u8 span_id)
{}

int prestera_span_rule_add(struct prestera_flow_block_binding *binding,
			   struct prestera_port *to_port,
			   bool ingress)
{}

int prestera_span_rule_del(struct prestera_flow_block_binding *binding,
			   bool ingress)
{}

int prestera_span_init(struct prestera_switch *sw)
{}

void prestera_span_fini(struct prestera_switch *sw)
{}