diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-08 17:55:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-08 22:49:36 +0200 |
commit | a86d8becc3f04a5e350b5a17530e6a01495c00a5 (patch) | |
tree | 93e0c28cdfcac7bb616f9b767c4a782a2e620bce /net/mpls | |
parent | net: dsa: Move skb_unshare() to dsa_switch_rcv() (diff) | |
download | linux-a86d8becc3f04a5e350b5a17530e6a01495c00a5.tar.xz linux-a86d8becc3f04a5e350b5a17530e6a01495c00a5.zip |
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>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions