Received: with ECARTIS (v1.0.0; list netdev); Sat, 30 Apr 2005 13:50:29 -0700 (PDT) Received: from mx03.cybersurf.com (mx03.cybersurf.com [209.197.145.106]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j3UKoM7J027617 for ; Sat, 30 Apr 2005 13:50:23 -0700 Received: from mail.cyberus.ca ([209.197.145.21]) by mx03.cybersurf.com with esmtp (Exim 4.30) id 1DRyum-0006AO-Km for netdev@oss.sgi.com; Sat, 30 Apr 2005 16:50:16 -0400 Received: from cpe0030ab124d2f-cm014500000962.cpe.net.cable.rogers.com ([24.103.99.32] helo=[10.0.0.229]) by mail.cyberus.ca with esmtp (Exim 4.20) id 1DRyud-00085u-1a; Sat, 30 Apr 2005 16:50:07 -0400 Subject: Re: patch: Action repeat From: jamal Reply-To: hadi@cyberus.ca To: Thomas Graf Cc: Patrick McHardy , netdev , "David S. Miller" In-Reply-To: <20050430200848.GF577@postel.suug.ch> References: <1114879817.8929.117.camel@localhost.localdomain> <4273BB30.1050402@trash.net> <4273BBAA.6060405@trash.net> <1114882045.8929.123.camel@localhost.localdomain> <4273CAB7.6080403@trash.net> <1114890709.8929.147.camel@localhost.localdomain> <20050430200848.GF577@postel.suug.ch> Content-Type: text/plain Organization: unknown Date: Sat, 30 Apr 2005 16:50:02 -0400 Message-Id: <1114894202.8929.165.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.83/861/Sat Apr 30 02:28:52 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 483 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: hadi@cyberus.ca Precedence: bulk X-list: netdev Content-Length: 1657 Lines: 43 On Sat, 2005-30-04 at 22:08 +0200, Thomas Graf wrote: > I've been using tc_classid to communicate between ingress and egress > without the need for netfilter but this is something personal. This > meant to remove the tc_classid = 0 in tcf_action_exec and a have > smallish action set it at ingress to pick it up again with the meta > ematch at egress. > I think we may have to define what the scope of classid is. It seems to me the scope needs to be _local_ to either ingress or egress. OTOH, something like a fwmark is _global_. At least this is what my thoughts were when doing that piece. Using those rules, the situation Patrick describes on violates this (because stolen packets still maintain the classid), yours doesnt - unless we change the scope of classid. > > I see the issue with classid leaking - perhaps specific actions could > > reset it when they steal packets? We should also reset it if the packet > > is stolen. > > Definitely. Just thinking about that: _exec() can reset classid if packet is stolen and not transfer it back to classifier. I think the forward path is to have the actions reset it. We would just have to make it the rule described somewhere or have a macro someone call every time they steal a packet... > I'm not yet certain on this subject, I have a strong feeling that > something like tc_classid will be needed but not as in its current > use. Can we postpone this for 1-2 weeks so I can submit my new > ematch patches? This would give us something to use as a basis for > a discussion. If we are going to redefine the scope of where a classid applies, then we can discuss it any time. cheers, jamal