aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2019-11-09 15:02:49 +0200
committerDavid S. Miller <davem@davemloft.net>2019-11-11 12:59:09 -0800
commit531ee1a6a325c877b069a186999c1b9c911027b3 (patch)
tree934ec97d5f1975812ebb70317045c9498a32bf41 /drivers/net/can
parentnet: mscc: ocelot: break apart vlan operations into ocelot_vlan_{add, del} (diff)
downloadlinux-dev-531ee1a6a325c877b069a186999c1b9c911027b3.tar.xz
linux-dev-531ee1a6a325c877b069a186999c1b9c911027b3.zip
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 'drivers/net/can')
0 files changed, 0 insertions, 0 deletions