#include "lan966x_main.h"
#define POL_IDX_PORT …
#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)
{ … }