From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/2] ethdev: add supported hash function check Date: Wed, 18 Apr 2018 00:00:53 +0200 Message-ID: <38100809.DTC8XynbX7@xps> References: <20180409121035.148813-1-xuemingl@mellanox.com> <20180417142425.159378-1-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Shahaf Shuler , Nelio Laranjeiro , Wenzhuo Lu , Jingjing Wu To: Xueming Li Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 49234A498 for ; Wed, 18 Apr 2018 00:00:56 +0200 (CEST) In-Reply-To: <20180417142425.159378-1-xuemingl@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 17/04/2018 16:24, Xueming Li: > + /* Check that device supports requested rss hash functions. */ > + if ((dev_info.flow_type_rss_offloads | > + dev_conf->rx_adv_conf.rss_conf.rss_hf) != > + dev_info.flow_type_rss_offloads) { > + RTE_PMD_DEBUG_TRACE("ethdev port_id=%d invalid rss_hf: 0x%lx, valid value: 0x%lx\n", > + port_id, > + dev_conf->rx_adv_conf.rss_conf.rss_hf, > + dev_info.flow_type_rss_offloads); > + return -EINVAL; > + } Please use PRIx64 and test 32-bit compilation. Reminder from this recent post: http://dpdk.org/ml/archives/dev/2018-February/090882.html " Most of the times, using %l is wrong (except when printing a long). So next time you write %l, please think "I am probably wrong". "