linux/drivers/net/ethernet/mscc/ocelot_police.c

// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/* Microsemi Ocelot Switch driver
 *
 * Copyright (c) 2019 Microsemi Corporation
 */

#include <soc/mscc/ocelot.h>
#include "ocelot_police.h"

/* Types for ANA:POL[0-192]:POL_MODE_CFG.FRM_MODE */
#define POL_MODE_LINERATE
#define POL_MODE_DATARATE
#define POL_MODE_FRMRATE_HI
#define POL_MODE_FRMRATE_LO

/* Policer indexes */
#define POL_IX_PORT
#define POL_IX_QUEUE

/* Default policer order */
#define POL_ORDER

int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix,
			 struct qos_policer_conf *conf)
{}

int ocelot_policer_validate(const struct flow_action *action,
			    const struct flow_action_entry *a,
			    struct netlink_ext_ack *extack)
{}
EXPORT_SYMBOL();

int ocelot_port_policer_add(struct ocelot *ocelot, int port,
			    struct ocelot_policer *pol)
{}
EXPORT_SYMBOL();

int ocelot_port_policer_del(struct ocelot *ocelot, int port)
{}
EXPORT_SYMBOL();