linux/drivers/net/ethernet/mscc
Vladimir Oltean 924ee317f7 net: mscc: ocelot: refactor ocelot_xtr_irq_handler into ocelot_xtr_poll
Since the felix DSA driver will need to poll the CPU port module for
extracted frames as well, let's create some common functions that read
an Extraction Frame Header, and then an skb, from a CPU extraction
group.

We abuse the struct ocelot_ops :: port_to_netdev function a little bit,
in order to retrieve the DSA port net_device or the ocelot switchdev
net_device based on the source port information from the Extraction
Frame Header, but it's all in the benefit of code simplification -
netdev_alloc_skb needs it. Originally, the port_to_netdev method was
intended for parsing act->dev from tc flower offload code.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-14 17:31:44 -08:00
..
Kconfig
Makefile net: mscc: ocelot: initialize watermarks to sane defaults 2021-01-15 20:02:34 -08:00
ocelot.c net: mscc: ocelot: refactor ocelot_xtr_irq_handler into ocelot_xtr_poll 2021-02-14 17:31:44 -08:00
ocelot.h net: mscc: ocelot: use common tag parsing code with DSA 2021-02-14 17:31:44 -08:00
ocelot_devlink.c net: mscc: ocelot: configure watermarks using devlink-sb 2021-01-15 20:02:35 -08:00
ocelot_flower.c net: mscc: ocelot: store a namespaced VCAP filter ID 2021-01-29 21:24:30 -08:00
ocelot_io.c net: dsa: felix: implement port flushing on .phylink_mac_link_down 2021-02-09 11:41:11 -08:00
ocelot_net.c net: mscc: ocelot: refactor ocelot_port_inject_frame out of ocelot_port_xmit 2021-02-14 17:31:44 -08:00
ocelot_police.c
ocelot_police.h
ocelot_ptp.c
ocelot_qs.h
ocelot_rew.h
ocelot_vcap.c net: dsa: felix: perform switch setup for tag_8021q 2021-01-29 21:25:27 -08:00
ocelot_vcap.h net: dsa: felix: perform switch setup for tag_8021q 2021-01-29 21:25:27 -08:00
ocelot_vsc7514.c net: mscc: ocelot: refactor ocelot_xtr_irq_handler into ocelot_xtr_poll 2021-02-14 17:31:44 -08:00