Received: with ECARTIS (v1.0.0; list netdev); Tue, 12 Jul 2005 14:03:23 -0700 (PDT) Received: from ns1.s2io.com (ns1.s2io.com [142.46.200.198]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j6CL3JH9032073 for ; Tue, 12 Jul 2005 14:03:20 -0700 Received: from guinness.s2io.com (sentry.s2io.com [142.46.200.199]) by ns1.s2io.com (8.12.10/8.12.10) with ESMTP id j6CL10cx012292; Tue, 12 Jul 2005 17:01:00 -0400 (EDT) Received: from rarakali ([10.16.16.79]) by guinness.s2io.com (8.12.6/8.12.6) with SMTP id j6CL0wKP012521; Tue, 12 Jul 2005 17:00:58 -0400 (EDT) From: "Ravinandan Arakali" To: "'David S. Miller'" , Cc: , , , , Subject: RE: [PATCH 2.6.12.1 5/12] S2io: Performance improvements Date: Tue, 12 Jul 2005 14:00:52 -0700 Message-ID: <000a01c58724$ca41a7c0$4f10100a@pc.s2io.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <20050712.133404.52118192.davem@davemloft.net> Importance: Normal X-Scanned-By: MIMEDefang 2.34 X-archive-position: 2721 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: ravinandan.arakali@neterion.com Precedence: bulk X-list: netdev Content-Length: 990 Lines: 29 The two-buffer mode was added as a configurable option to Kconfig file several months ago. Hence the macro is CONFIG_2BUFF_MODE. The two-buffer receive mode involves two buffers (128 byte aligned) for each packet. This mode drastically increases performance on SGI platforms and hence enabled only for these platforms. On other platforms, there's no difference compared to one-buffer mode but the added complexity and extra memory allocated does not make it worthwhile to enable this mode for non-SGI platforms. Also, most of our QA cycle on non-SGI platforms has been done with one-buffer mode. Thanks, Ravi > > +/* Enable 2 buffer mode by default for SGI system */ > > +#ifdef CONFIG_IA64_SGI_SN2 > > +#define CONFIG_2BUFF_MODE > > +#endif > > this enabled it only on kernel that are built to only run on SN2 > hardware, which is completely useless in practice. Besides that defining > a CONFIG_ symbol from source files is a big no-go. Yes, do this in the Kconfig file instead.