netdev
[Top] [All Lists]

Re: More tc action mess

To: hadi@xxxxxxxxxx
Subject: Re: More tc action mess
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Wed, 19 Jan 2005 21:22:51 +0100
Cc: Maillist netdev <netdev@xxxxxxxxxxx>
In-reply-to: <1106140256.1049.903.camel@xxxxxxxxxxxxxxxx>
References: <41EDEB97.3080503@xxxxxxxxx> <1106140256.1049.903.camel@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041008 Debian/1.7.3-5
jamal wrote:

On Wed, 2005-01-19 at 00:09, Patrick McHardy wrote:
This means we must convert all paths on which tcf_action_exec is called
to use struct sk_buff ** :(


No, just restore the code that you took out in one of your patches
right above that line which reads:

----
       if (skb_cloned(skb)) {
               if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) {
                       return -1;
               }
       }
----

Depending on what you do in netfilter lately, you may wanna take out
the skb_cloned() call.

This does not help. Netfilter calls skb_ip_make_writable if it has to
touch the packet, if it is shared or cloned the packet will be copied.
Despite this, this is hardly a fix as long as the ->act function takes
a struct sk_buff **.

Regards
Patrick


<Prev in Thread] Current Thread [Next in Thread>