[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1492536212.10587.133.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Tue, 18 Apr 2017 10:23:32 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: James Hughes <james.hughes@...pberrypi.org>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
Steve Glendinning <steve.glendinning@...well.net>,
Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>
Subject: Re: [PATCH] smsc95xx: Use skb_cow to deal with cloned skbs
On Tue, 2017-04-18 at 10:10 -0700, Florian Fainelli wrote:
> BTW, this pattern of using skb_headroom() ... skb_copy_expand() seems to
> be recurring in pretty much all USB network drivers that have a tx_fixup
> callback set. The problem is that each driver needs its own
> headroom/tailroom so the fix is not as simple as putting the
> skb_cow_head() before the call to the drivers' tx_fixup...
>
> I wonder if a coccinelle patch would be able to do that for us?
Not sure about coccinelle, because some drivers also need some tailroom.
Powered by blists - more mailing lists