net: dsa: Move skb_unshare() to dsa_switch_rcv()
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 8 Apr 2017 15:55:22 +0000 (08:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Apr 2017 20:49:36 +0000 (13:49 -0700)
commit16c5dcb13a371feae0e680e6518775b5335b37d8
tree2dd0fe414dc67bcef0da6c4e2a19178650145fe3
parent9d7f9c4f78e95dd9d17199a53d903262530be62e
net: dsa: Move skb_unshare() to dsa_switch_rcv()

All DSA tag receive functions need to unshare the skb before mangling it, move
this to the generic dsa_switch_rcv() function which will allow us to make the
tag receive function return their mangled skb without caring about freeing a
NULL skb.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/tag_brcm.c
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c
net/dsa/tag_mtk.c
net/dsa/tag_qca.c
net/dsa/tag_trailer.c