Re: [PATCH net-next 2/3] net: dsa: Move skb_unshare() to dsa_switch_rcv()

2017-04-07 Thread Andrew Lunn
On Fri, Apr 07, 2017 at 01:41:53PM -0700, Florian Fainelli wrote: > 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 fre

Re: [PATCH net-next 2/3] net: dsa: Move skb_unshare() to dsa_switch_rcv()

2017-04-07 Thread Vivien Didelot
Florian Fainelli writes: > 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: F

[PATCH net-next 2/3] net: dsa: Move skb_unshare() to dsa_switch_rcv()

2017-04-07 Thread Florian Fainelli
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 --- net/dsa/dsa.c