Re: GFP_ATOMIC vs GFP_KERNEL in netfilter module

From: Roberto Jung Drebes
Date: Mon Dec 06 2004 - 08:13:29 EST



On 02/12/2004, at 21:12, Roberto Jung Drebes wrote:

If I use GFP_ATOMIC, I don't get the error, but I think timers are not being called after the delay. I have a similar code for transmition, which works OK with GFP_KERNEL (delays messages) but with GFP_ATOMIC it does also not delay.

I test delay with ping, and I am running kernel 2.6.8-1.521 from Fedora Core 2.

What am I doing wrong?

Just for reference, everything was working alright with GFP_ATOMIC. I thought the timer was not installed because ping would not detect the delay. This happened because ping writes to the ICMP packet the timestamp when it is first received by the kernel, before netfilter hooks. Using ping with the old behavior (ping -U) worked as expected, printing the time the packet was kept in my netfilter hook.

Thanks,

--
Roberto Jung Drebes <drebes@xxxxxxxxxxxx>
Porto Alegre, RS - Brasil
http://www.inf.ufrgs.br/~drebes/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/