aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-02-13 22:37:59 +0000
committerDavid S. Miller <[email protected]>2021-02-15 01:31:44 +0000
commit924ee317f72459a49ac4130272c7d33063e60339 (patch)
tree1fa5e0019b7f30c28f137830dc7f75cfc2a1dde9 /net/switchdev/switchdev.c
parentnet: dsa: tag_ocelot: create separate tagger for Seville (diff)
downloadkernel-924ee317f72459a49ac4130272c7d33063e60339.tar.gz
kernel-924ee317f72459a49ac4130272c7d33063e60339.zip
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 <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions