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.