From: Ferruh Yigit Subject: Re: [PATCH] net/vmxnet3: convert to new rx offload api Date: Wed, 2 May 2018 10:16:10 +0100 Message-ID: References: <1525126835-21775-1-git-send-email-llouis@vmware.com> <25c3daf3-4330-68af-1022-bb6450c6af05@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "dev@dpdk.org" To: Louis Luo , Yong Wang Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 761C623B for ; Wed, 2 May 2018 11:16:13 +0200 (CEST) In-Reply-To: Content-Language: en-US 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 5/1/2018 6:32 PM, Louis Luo wrote: > Hi Ferruh, > > Thanks for your review! Initially I did use PRIx64 there, but checkpatch.sh always failed and complained about it for Camel case. So I just replaced it with %lx. I will change it back and resend the review. Hi Louis, You are right checkpatch complains about it as CamelCase syntax but that is OK to ignore this warning for PRI... usage, in favor of fixing 32bits build. > > Thanks, > Louis > > On 5/1/18, 7:58 AM, "Ferruh Yigit" wrote: > > On 4/30/2018 11:20 PM, Louis Luo wrote: > > Ethdev RX offloads API has changed since: commit ce17eddefc20 > > ("ethdev: introduce Rx queue offloads API") > > > > This patch adopts the new RX Offload API in vmxnet3 driver. > > > > Signed-off-by: Louis Luo > > Hi Louis, > > Overall patch looks good, only there is 32bits build error because of logging, > more details below. > > Can you please send a new version of the patch, keeping Yong's ack. > > <...> > > > @@ -376,9 +393,25 @@ vmxnet3_dev_configure(struct rte_eth_dev *dev) > > const struct rte_memzone *mz; > > struct vmxnet3_hw *hw = dev->data->dev_private; > > size_t size; > > + uint64_t rx_offloads = dev->data->dev_conf.rxmode.offloads; > > + uint64_t tx_offloads = dev->data->dev_conf.txmode.offloads; > > > > PMD_INIT_FUNC_TRACE(); > > > > + if ((rx_offloads & VMXNET3_RX_OFFLOAD_CAP) != rx_offloads) { > > + RTE_LOG(ERR, PMD, "Requested RX offloads 0x%lx" > > + " do not match supported 0x%lx\n", > > + rx_offloads, (uint64_t)VMXNET3_RX_OFFLOAD_CAP); > > %lx usage causing build error with 32bit build [1], please prefer PRIx64. > > [1] > argument of type "uint64_t={__uint64_t={unsigned long long}}" is incompatible > with format "%lx", expecting argument of type "unsigned long" > > <...> > >