diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2019-11-09 15:02:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-11 12:59:09 -0800 |
commit | 531ee1a6a325c877b069a186999c1b9c911027b3 (patch) | |
tree | 934ec97d5f1975812ebb70317045c9498a32bf41 /lib/inflate.c | |
parent | 9855934c27855002aa977bb879c6e1fe74ee5f03 (diff) | |
download | linux-531ee1a6a325c877b069a186999c1b9c911027b3.tar.bz2 |
net: mscc: ocelot: break out fdb operations into abstract implementations
To be able to implement a DSA front-end over ocelot_fdb_add,
ocelot_fdb_del, ocelot_fdb_dump, these need to have a simple function
prototype that is independent of struct net_device, netlink skb, etc.
So rename the ndo ops of the ocelot driver into
ocelot_port_fdb_{add,del,dump}, and have them all call the abstract
implementations. At the same time, refactor ocelot_port_fdb_do_dump into
a function whose prototype is compatible with dsa_fdb_dump_cb_t, so that
the do_dump implementations can live together and be called by the
ocelot_fdb_dump through a function pointer.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/inflate.c')
0 files changed, 0 insertions, 0 deletions