From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 1A35C8DA1 for ; Wed, 14 Sep 2016 15:17:54 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 14 Sep 2016 06:17:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,333,1470726000"; d="scan'208";a="168061507" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.117]) ([10.237.220.117]) by fmsmga004.fm.intel.com with ESMTP; 14 Sep 2016 06:17:53 -0700 To: Harish Patil , Chas Williams <3chas3@gmail.com>, "dev@dpdk.org" References: <1468271491-28510-1-git-send-email-3chas3@gmail.com> From: Ferruh Yigit Message-ID: <602d3899-58a7-709c-8de9-519c1b3f8401@intel.com> Date: Wed, 14 Sep 2016 14:17:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 01/10] bnx2x: Set cache line based on build configuration 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: Wed, 14 Sep 2016 13:17:55 -0000 Hi Harish, On 7/12/2016 6:39 AM, Harish Patil wrote: >> >> Correctly hint the cache line size. Remove unused macros associated >> with the cache line size. >> >> Fixes: 540a211084a7 ("bnx2x: driver core") >> >> Signed-off-by: Chas Williams <3chas3@gmail.com> >> --- >> drivers/net/bnx2x/bnx2x.h | 5 +---- >> 1 file changed, 1 insertion(+), 4 deletions(-) >> >> diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h >> index 135a6eb..852ec94 100644 >> --- a/drivers/net/bnx2x/bnx2x.h >> +++ b/drivers/net/bnx2x/bnx2x.h >> @@ -302,10 +302,7 @@ struct bnx2x_device_type { >> /* TCP with Timestamp Option (32) + IPv6 (40) */ >> >> /* max supported alignment is 256 (8 shift) */ >> -#define BNX2X_RX_ALIGN_SHIFT 8 >> -/* FW uses 2 cache lines alignment for start packet and size */ >> -#define BNX2X_FW_RX_ALIGN_START (1 << BNX2X_RX_ALIGN_SHIFT) >> -#define BNX2X_FW_RX_ALIGN_END (1 << BNX2X_RX_ALIGN_SHIFT) >> +#define BNX2X_RX_ALIGN_SHIFT RTE_MAX(6, min(8, RTE_CACHE_LINE_SIZE_LOG2)) >> >> #define BNX2X_PXP_DRAM_ALIGN (BNX2X_RX_ALIGN_SHIFT - 5) >> >> -- >> 2.5.5 >> >> > > Acked-by: Harish Patil > Is the Ack for this patch (01/10) or for the series? Thanks, ferruh