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>
Showing
- net/dsa/dsa.c 4 additions, 0 deletionsnet/dsa/dsa.c
- net/dsa/tag_brcm.c 0 additions, 5 deletionsnet/dsa/tag_brcm.c
- net/dsa/tag_dsa.c 0 additions, 5 deletionsnet/dsa/tag_dsa.c
- net/dsa/tag_edsa.c 0 additions, 5 deletionsnet/dsa/tag_edsa.c
- net/dsa/tag_mtk.c 0 additions, 5 deletionsnet/dsa/tag_mtk.c
- net/dsa/tag_qca.c 0 additions, 5 deletionsnet/dsa/tag_qca.c
- net/dsa/tag_trailer.c 0 additions, 5 deletionsnet/dsa/tag_trailer.c
Loading
Please register or sign in to comment