From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 6E9242A58 for ; Mon, 6 Jul 2015 17:38:03 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 06 Jul 2015 08:38:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,415,1432623600"; d="scan'208";a="741521297" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.62]) by fmsmga001.fm.intel.com with SMTP; 06 Jul 2015 08:37:59 -0700 Received: by (sSMTP sendmail emulation); Mon, 06 Jul 2015 16:37:59 +0025 Date: Mon, 6 Jul 2015 16:37:59 +0100 From: Bruce Richardson To: Zhigang Lu Message-ID: <20150706153758.GD3680@bricha3-MOBL3> References: <1436172698-21749-1-git-send-email-zlu@ezchip.com> <1436172698-21749-9-git-send-email-zlu@ezchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436172698-21749-9-git-send-email-zlu@ezchip.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 08/12] mempool: allow config override on element alignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 15:38:03 -0000 On Mon, Jul 06, 2015 at 04:51:33PM +0800, Zhigang Lu wrote: > On TILE-Gx and TILE-Mx platforms, the buffers fed into the hardware > buffer manager require a 128-byte alignment. With this change, we > allow configuration based override of the element alignment, and > default to RTE_CACHE_LINE_SIZE if left unspecified. > > Change-Id: I9cd789d92b0bc9c8f44a633de59bb04d45d927a7 > Signed-off-by: Zhigang Lu This looks an OK change. However, would it be worthwhile making this a runtime parameter rather than a compile-time one? Is it likely that we will ever have a case where someone wants two mempools with different alignments (and where using the larger of the two would be problematic)? /Bruce