linux/drivers/net/ethernet/microchip/lan966x/lan966x_police.c

// SPDX-License-Identifier: GPL-2.0+

#include "lan966x_main.h"

/* 0-8 : 9 port policers */
#define POL_IDX_PORT

/* Policer order: Serial (QoS -> Port -> VCAP) */
#define POL_ORDER

struct lan966x_tc_policer {};

static int lan966x_police_add(struct lan966x_port *port,
			      struct lan966x_tc_policer *pol,
			      u16 pol_idx)
{}

static void lan966x_police_del(struct lan966x_port *port, u16 pol_idx)
{}

static int lan966x_police_validate(struct lan966x_port *port,
				   const struct flow_action *action,
				   const struct flow_action_entry *act,
				   unsigned long police_id,
				   bool ingress,
				   struct netlink_ext_ack *extack)
{}

int lan966x_police_port_add(struct lan966x_port *port,
			    struct flow_action *action,
			    struct flow_action_entry *act,
			    unsigned long police_id,
			    bool ingress,
			    struct netlink_ext_ack *extack)
{}

int lan966x_police_port_del(struct lan966x_port *port,
			    unsigned long police_id,
			    struct netlink_ext_ack *extack)
{}

void lan966x_police_port_stats(struct lan966x_port *port,
			       struct flow_stats *stats)
{}