* hard_start_xmit conext @ 2006-08-15 19:12 kiran kandi 2006-08-16 3:08 ` Herbert Xu 0 siblings, 1 reply; 5+ messages in thread From: kiran kandi @ 2006-08-15 19:12 UTC (permalink / raw) To: netdev Hi all, In what context hard_start_xmit function is called. Is it called in soft irq or a processes context. Also can you call kfree_skb in soft irq context. -- Thanks kiran _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard_start_xmit conext 2006-08-15 19:12 hard_start_xmit conext kiran kandi @ 2006-08-16 3:08 ` Herbert Xu 2006-08-16 7:36 ` Jeff Garzik 0 siblings, 1 reply; 5+ messages in thread From: Herbert Xu @ 2006-08-16 3:08 UTC (permalink / raw) To: kiran kandi; +Cc: netdev kiran kandi <kkiran78@hotmail.com> wrote: > > In what context hard_start_xmit function is called. Is it called in soft > irq or a processes context. softirq > Also can you call kfree_skb in soft irq context. Yes. Don't do it in hard irq context though. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard_start_xmit conext 2006-08-16 3:08 ` Herbert Xu @ 2006-08-16 7:36 ` Jeff Garzik 2006-08-16 8:48 ` Ben Greear 0 siblings, 1 reply; 5+ messages in thread From: Jeff Garzik @ 2006-08-16 7:36 UTC (permalink / raw) To: Herbert Xu; +Cc: kiran kandi, netdev Herbert Xu wrote: > kiran kandi <kkiran78@hotmail.com> wrote: >> In what context hard_start_xmit function is called. Is it called in soft >> irq or a processes context. > > softirq > >> Also can you call kfree_skb in soft irq context. > > Yes. Don't do it in hard irq context though. FWIW there is also Documentation/networking/netdevices.txt where this sort of stuff is documented. Jeff ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard_start_xmit conext 2006-08-16 7:36 ` Jeff Garzik @ 2006-08-16 8:48 ` Ben Greear 2006-08-16 10:22 ` Herbert Xu 0 siblings, 1 reply; 5+ messages in thread From: Ben Greear @ 2006-08-16 8:48 UTC (permalink / raw) To: Jeff Garzik; +Cc: Herbert Xu, kiran kandi, netdev Jeff Garzik wrote: > Herbert Xu wrote: > >> kiran kandi <kkiran78@hotmail.com> wrote: >> >>> In what context hard_start_xmit function is called. Is it called in >>> soft irq or a processes context. >> >> >> softirq It can be process too...doesn't pktgen call it directly? Ben ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard_start_xmit conext 2006-08-16 8:48 ` Ben Greear @ 2006-08-16 10:22 ` Herbert Xu 0 siblings, 0 replies; 5+ messages in thread From: Herbert Xu @ 2006-08-16 10:22 UTC (permalink / raw) To: Ben Greear; +Cc: Jeff Garzik, kiran kandi, netdev On Wed, Aug 16, 2006 at 01:48:56AM -0700, Ben Greear wrote: > > >>softirq > > It can be process too...doesn't pktgen call it directly? Only with BH disabled. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-16 10:22 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-08-15 19:12 hard_start_xmit conext kiran kandi 2006-08-16 3:08 ` Herbert Xu 2006-08-16 7:36 ` Jeff Garzik 2006-08-16 8:48 ` Ben Greear 2006-08-16 10:22 ` Herbert Xu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).