Received: with ECARTIS (v1.0.0; list netdev); Thu, 30 Dec 2004 05:47:43 -0800 (PST) Received: from mx01.cybersurf.com (mx01.cybersurf.com [209.197.145.104]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBUDlGOS001799 for ; Thu, 30 Dec 2004 05:47:36 -0800 Received: from mail.cyberus.ca ([209.197.145.21]) by mx01.cybersurf.com with esmtp (Exim 4.30) id 1Ck0ib-0001g7-O6 for netdev@oss.sgi.com; Thu, 30 Dec 2004 08:51:57 -0500 Received: from cpe0030ab124d2f-cm014500000962.cpe.net.cable.rogers.com ([24.103.99.32] helo=[10.0.0.9]) by mail.cyberus.ca with esmtp (Exim 4.20) id 1Ck0iZ-00027x-ST; Thu, 30 Dec 2004 08:51:56 -0500 Subject: Re: [PATCH 2/9] PKT_SCHED: tc filter extension API From: jamal Reply-To: hadi@cyberus.ca To: Thomas Graf Cc: "David S. Miller" , Patrick McHardy , netdev@oss.sgi.com In-Reply-To: <20041230123023.GO32419@postel.suug.ch> References: <20041230122652.GM32419@postel.suug.ch> <20041230123023.GO32419@postel.suug.ch> Content-Type: text/plain Organization: jamalopolous Message-Id: <1104414713.1047.130.camel@jzny.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 30 Dec 2004 08:51:54 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 13241 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 Thomas, Havent looked at the whole set - will later today; quick question: On Thu, 2004-12-30 at 07:30, Thomas Graf wrote: > +struct tcf_exts > +{ > +#ifdef CONFIG_NET_CLS_ACT > + struct tc_action *action; > +#elif defined CONFIG_NET_CLS_POLICE > + struct tcf_police *police; > +#endif > +}; Things like above: In current code you can have CONFIG_NET_CLS_ACT and not use new style policer, rather use old one i.e CONFIG_NET_CLS_POLICE. You seem to indicate presence of CONFIG_NET_CLS_ACT implies absence of NET_CLS_POLICE. A fix for example maybe to s/elif/ifdef [1] Anyways, back later to peek some more. cheers, jamal [1]Look at Kconfig rules: ---- config NET_CLS_POLICE ... depends on NET_CLS && NET_QOS && NET_ACT_POLICE!=y && NET_ACT_POLICE!=m ---- Anyways, back later to peek some more. cheers, jamal