linux/linux-5.4.31/drivers/net/ethernet/mscc/ocelot_police.h

23 lines
489 B
C
Raw Permalink Normal View History

2024-01-30 10:43:28 +00:00
/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
/* Microsemi Ocelot Switch driver
*
* Copyright (c) 2019 Microsemi Corporation
*/
#ifndef _MSCC_OCELOT_POLICE_H_
#define _MSCC_OCELOT_POLICE_H_
#include "ocelot.h"
struct ocelot_policer {
u32 rate; /* kilobit per second */
u32 burst; /* bytes */
};
int ocelot_port_policer_add(struct ocelot_port *port,
struct ocelot_policer *pol);
int ocelot_port_policer_del(struct ocelot_port *port);
#endif /* _MSCC_OCELOT_POLICE_H_ */