treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / ethernet / mscc / ocelot_police.h
blobae9509229463f6c147c700d22ab4c52594642a77
1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
2 /* Microsemi Ocelot Switch driver
4 * Copyright (c) 2019 Microsemi Corporation
5 */
7 #ifndef _MSCC_OCELOT_POLICE_H_
8 #define _MSCC_OCELOT_POLICE_H_
10 #include "ocelot.h"
12 struct ocelot_policer {
13 u32 rate; /* kilobit per second */
14 u32 burst; /* bytes */
17 int ocelot_port_policer_add(struct ocelot *ocelot, int port,
18 struct ocelot_policer *pol);
20 int ocelot_port_policer_del(struct ocelot *ocelot, int port);
22 #endif /* _MSCC_OCELOT_POLICE_H_ */