Thread (78 messages) 78 messages, 8 authors, 2007-11-26

Re: [PKT_SCHED]: Add stateless NAT

From: David Miller <davem@davemloft.net>
Date: 2007-09-30 00:13:39

From: Patrick McHardy <redacted>
Date: Sat, 29 Sep 2007 17:21:23 +0200
Unfortunately gcc doesn't perform tail call optimization when the
address of a parameter or local variable is passed to an extern
function before the tail call, which NF_HOOK does for the skb.
To which Herbert later asked why we need the **pskb thing.

The reason is that if we have to COW or resize the SKB it
could result in a realloc of the sk_buff struct which is
why we need the **pskb thing.

But strangely I can't find any skbuff.h interfaces that
require that any longer :-)))  So this might be some artifact
that we can in fact kill off.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help