From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 1/2] version: switch to year/month version numbers Date: Wed, 10 Feb 2016 18:20:16 +0100 Message-ID: <3149452.Rm3BBxm9PK@xps13> References: <1450704384-9986-1-git-send-email-bruce.richardson@intel.com> <1455123732-1705-1-git-send-email-john.mcnamara@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Mcnamara, John" Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 3F2DE5963 for ; Wed, 10 Feb 2016 18:21:43 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id p63so36014918wmp.1 for ; Wed, 10 Feb 2016 09:21:43 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-02-10 17:11, Mcnamara, John: > Hi Alejandro, > > Please note the above change to the nfp_net.c code due to the name change > in the version macro names. > > > I was originally going to change it to this: > > #if RTE_VER_YEAR == 2 && RTE_VER_MONTH >= 1 > dev_info->hash_key_size = NFP_NET_CFG_RSS_KEY_SZ; > #endif > > Or better: > > #if RTE_VERSION >= 0x02010000 > dev_info->hash_key_size = NFP_NET_CFG_RSS_KEY_SZ; > #endif Or better: #if RTE_VERSION >= RTE_VERSION_NUM(2,1,0,0) > However, since the code was added in DPDK 2.2 the version check doesn't seem > necessary, so I removed it. If you need it back in for some reason let me know. A version check is needed for external applications or external drivers. It should not exist in the git tree.