PPP: start_xmit from BH context causes BUG()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(I think I sent this to linux-net-owner instead of to the list...
 if not, then please forgive the duplicatation.)

Ok...I'm using the generic PPP layer and want to write the PPP frame
to a socket. So, my start_xmit() extracts the data from the sk_buff
and passes it to the socket's sendmsg function. This calls ip_build_xmit(),
which ultimately calls alloc_skb().

Now, alloc_skb() has issues...it says it has to be called atomically.
It checks this by calling testing (in_interrupt() && (gfp_msk & GFP_WAIT)).
in_interrupt() returns true if we're in a BH context.

So....what's up with that? I've got to be missing something, cuz these
two sources can't be *that* far off from each other. Plus the fact that
PPPoE doesn't seem to have any trouble calling alloc_skb() from its
start_xmit().

Can anyone set me straight here? There's a cookie in it for you if you do :)

--
Gary Cote
gcote@transat-tech.com


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux