linux_dsm_epyc7002/net/dsa
Florian Fainelli a86d8becc3 net: dsa: Factor bottom tag receive functions
All DSA tag receive functions do strictly the same thing after they have located
the originating source port from their tag specific protocol:

- push ETH_HLEN bytes
- set pkt_type to PACKET_HOST
- call eth_type_trans()
- bump up counters
- call netif_receive_skb()

Factor all of that into dsa_switch_rcv(). This also makes us return a pointer to
a sk_buff, which makes us symetric with the xmit function.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-08 13:49:36 -07:00
..
dsa2.c net: dsa: dsa2: Add basic support of devlink 2017-03-28 22:46:04 -07:00
dsa_priv.h net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
dsa.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
Kconfig net-next: dsa: add Mediatek tag RX/TX handler 2017-04-07 13:50:55 -07:00
Makefile net-next: dsa: add Mediatek tag RX/TX handler 2017-04-07 13:50:55 -07:00
slave.c net: break include loop netdevice.h, dsa.h, devlink.h 2017-03-28 22:46:04 -07:00
switch.c net: dsa: add cross-chip bridging operations 2017-04-01 12:22:57 -07:00
tag_brcm.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
tag_dsa.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
tag_edsa.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
tag_mtk.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
tag_qca.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00
tag_trailer.c net: dsa: Factor bottom tag receive functions 2017-04-08 13:49:36 -07:00