diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2019-11-09 14:02:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-11 21:59:10 +0100 |
commit | f270dbfab8799f9fd9cfb275df1cabd36c06e918 (patch) | |
tree | 73dc7c2b9917a9e72e3c927adac2205ef71fef90 /drivers/net/ethernet/mscc/ocelot_police.h | |
parent | net: mscc: ocelot: change prototypes of switchdev port attribute handlers (diff) | |
download | linux-f270dbfab8799f9fd9cfb275df1cabd36c06e918.tar.xz linux-f270dbfab8799f9fd9cfb275df1cabd36c06e918.zip |
net: mscc: ocelot: refactor struct ocelot_port out of function prototypes
The ocelot_port structure has a net_device embedded in it, which makes
it unsuitable for leaving it in the driver implementation functions.
Leave ocelot_flower.c untouched. In that file, ocelot_port is used as an
interface to the tc shared blocks. That will be addressed in the next
patch.
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mscc/ocelot_police.h b/drivers/net/ethernet/mscc/ocelot_police.h index d1137f79efda..ae9509229463 100644 --- a/drivers/net/ethernet/mscc/ocelot_police.h +++ b/drivers/net/ethernet/mscc/ocelot_police.h @@ -14,9 +14,9 @@ struct ocelot_policer { u32 burst; /* bytes */ }; -int ocelot_port_policer_add(struct ocelot_port *port, +int ocelot_port_policer_add(struct ocelot *ocelot, int port, struct ocelot_policer *pol); -int ocelot_port_policer_del(struct ocelot_port *port); +int ocelot_port_policer_del(struct ocelot *ocelot, int port); #endif /* _MSCC_OCELOT_POLICE_H_ */ |