[ofa-general] NetEffect, iw_nes and kernel warning

Stephen Hemminger shemminger at vyatta.com
Tue Jan 27 16:17:09 PST 2009


On Tue, 27 Jan 2009 16:07:50 -0800 (PST)
David Miller <davem at davemloft.net> wrote:

> From: Roland Dreier <rdreier at cisco.com>
> Date: Tue, 27 Jan 2009 15:53:16 -0800
> 
> > but actually I still don't see how it's safe for a net driver to
> > call skb_linearize() from its transmit routine, since there's a
> > chance that that will unconditionally enable BHs?
> 
> It's simply not allowed.
> 
> dev_queue_xmit() at a higher level can do __skb_linearize()
> because it does so before doing the rcu_read_lock_bh().

If the device driver can't handle non-linear SKB's then it should
not set NETIF_F_SG.



More information about the general mailing list