Re: How to send ACKs from main receiving routine.

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

 



On Wed, 20 Mar 2002, Marek Zawadzki wrote:

> On Tue, 19 Mar 2002, Marek Zawadzki wrote:
>
> [...]
> > Can I send acks from receiving routine?
> > ('send_ack' works ok in other cases)
>
> Maybe I wasn't clear enough. I test it on a local machine, that's why the
> receiving routine can trigger itself in my case. But I am not sure about
> that, since kernel panicks and I can't see my debugging info.
>
> Maybe transport protocol's handler (receiving routine) is executed by IP
> in some kind of kernel state (interrupt?), which doesn't allow for
> reentering it until it's finished itself?

Yes, I was right. Since the receiving handler is called in an interrupt,
you can't for instance use GFP_KERNEL when allocating (use GFP_ATOMIC).
sk->allocation is used everywhere by IP, so you can assing GFP_ATOMIC to
it when you create your sockets.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux