linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* where is the rx interrupt handler in Ppp_generic.c?
@ 2008-04-30  2:33 曹永欣
  2008-04-30  3:46 ` James Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: 曹永欣 @ 2008-04-30  2:33 UTC (permalink / raw)
  To: linux-ppp

Hi, all! 

I'm confused when I read the kernel's ppp implement. in Ppp_generic.c,the function ppp_create_interface  register the net_device , but I can't find out whereis the rx interrupt handler. So how the net device interface such as ppp0 deal with received packets? 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: where is the rx interrupt handler in Ppp_generic.c?
  2008-04-30  2:33 where is the rx interrupt handler in Ppp_generic.c? 曹永欣
@ 2008-04-30  3:46 ` James Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: James Cameron @ 2008-04-30  3:46 UTC (permalink / raw)
  To: linux-ppp

On Wed, Apr 30, 2008 at 10:33:13AM +0800, ?????? wrote:
> I'm confused when I read the kernel's ppp implement. in
> Ppp_generic.c,the function ppp_create_interface  register the
> net_device , but I can't find out whereis the rx interrupt handler. So
> how the net device interface such as ppp0 deal with received packets? 

I'm not sure exactly what you mean.  I think you want to know how the
received packets find their way from the tty to the network interface
ppp0.

ppp_async.c ppp_asynctty_receive() occurs when bytes are received from
the tty.  This wakes the tasklet ppp_async_process().  The tasklet calls
ppp_input() for each packet.

Eventually, ppp_input() calls ppp_receive_nonmp_frame() which removes
the encapsulation and calls netif_rx() ... after that the packet will
appear in ppp0 as received.

"rx interrupt handler" ... might be better thought of as the tty receive
handler, which cascades through ppp_async.c into ppp_generic.c

-- 
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-30  3:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30  2:33 where is the rx interrupt handler in Ppp_generic.c? 曹永欣
2008-04-30  3:46 ` James Cameron

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).