diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-03-29 14:52:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-30 11:44:00 -0700 |
commit | fc411eaac8db7bd2cf3d9b67fd4b5651345a2cef (patch) | |
tree | 9b719cfd81adb0d3a49bd188569ac42654dd261b /drivers/net/ethernet/mscc/ocelot_police.h | |
parent | 342971766c177ee5ad42dadd9809d581c5a65a67 (diff) | |
download | lwn-fc411eaac8db7bd2cf3d9b67fd4b5651345a2cef.tar.gz lwn-fc411eaac8db7bd2cf3d9b67fd4b5651345a2cef.zip |
net: dsa: felix: add port policers
This patch is a trivial passthrough towards the ocelot library, which
support port policers since commit 2c1d029a017f ("net: mscc: ocelot:
Implement port policers via tc command").
Some data structure conversion between the DSA core and the Ocelot
library is necessary, for policer parameters.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mscc/ocelot_police.h')
-rw-r--r-- | drivers/net/ethernet/mscc/ocelot_police.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_police.h b/drivers/net/ethernet/mscc/ocelot_police.h index 22025cce0a6a..792abd28010a 100644 --- a/drivers/net/ethernet/mscc/ocelot_police.h +++ b/drivers/net/ethernet/mscc/ocelot_police.h @@ -9,16 +9,6 @@ #include "ocelot.h" -struct ocelot_policer { - u32 rate; /* kilobit per second */ - u32 burst; /* bytes */ -}; - -int ocelot_port_policer_add(struct ocelot *ocelot, int port, - struct ocelot_policer *pol); - -int ocelot_port_policer_del(struct ocelot *ocelot, int port); - int ocelot_ace_policer_add(struct ocelot *ocelot, u32 pol_ix, struct ocelot_policer *pol); |