From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3057FA052A; Wed, 27 Jan 2021 18:23:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4D43140FAC; Wed, 27 Jan 2021 18:23:05 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 10025140F95 for ; Wed, 27 Jan 2021 18:23:03 +0100 (CET) IronPort-SDR: m33zb3B25bN8h9S2t3CjEj3Bof2b5Il3fgmWYsSr1gIfpRtdsrIwGJGI1UikWDusizaaIHFjFb ebqHhCSVY+SQ== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="241632332" X-IronPort-AV: E=Sophos;i="5.79,380,1602572400"; d="scan'208";a="241632332" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 09:23:01 -0800 IronPort-SDR: qqhBsWGx5CMJ24SvKUDWXe01w6LxIjjdSlLXTx7i8UiMr0usd4rebL0TlVmBGexucZIvObbbcJ zplQdd4lmxRQ== X-IronPort-AV: E=Sophos;i="5.79,380,1602572400"; d="scan'208";a="430173119" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.208.215]) ([10.213.208.215]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 09:23:00 -0800 To: Andrew Boyer , dev@dpdk.org Cc: Alfredo Cardigliano References: <20210118203508.1332-1-aboyer@pensando.io> <20210118203508.1332-5-aboyer@pensando.io> From: Ferruh Yigit Message-ID: <48cdfe00-6dae-4b8b-082d-9501f24438f0@intel.com> Date: Wed, 27 Jan 2021 17:22:57 +0000 MIME-Version: 1.0 In-Reply-To: <20210118203508.1332-5-aboyer@pensando.io> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 04/13] net/ionic: add an array-size macro X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/18/2021 8:34 PM, Andrew Boyer wrote: > Using the IONIC_ARRAY_SIZE() macro makes the code clearer. > > Signed-off-by: Andrew Boyer There is already 'RTE_DIM' macro for it (in 'lib/librte_eal/include/rte_common.h'), what do you think using it instead of creating a new one?