From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id EB3401B2EE for ; Wed, 8 Nov 2017 10:22:09 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id r68so8976473wmr.1 for ; Wed, 08 Nov 2017 01:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=zKTf9uDhde/qye5ZU0l8WIEmlr85d96e04bovtf3JKs=; b=QLQQvlB5o72lqXjBsekIKSuCLBko/wEKtjuXeZvo5v8KhZvL+dRab3xSNL5u1TB96j 5RA1Co+1iXXW5PWfg47MIMLFnSKOmFfBxvuGIyihDr7E0wIB+g88bO/giO7Z/zvqHgLM IeuRZC7J+irv7d7PVZrcy0x8rfzhY/XXaYFuk6FGQjXiqM/r0+i7DYlSpzcqQiiDirH4 t+LZmAv74IBBw8z/g1yJCsNJkciaPQrS74A1lNfdtcN5yy+QV33NplPvEpJaMiFQVTzq 7yIalVKCkS2jTOm9dHHe3qBjEndmIpH2ovNEZKiKsMvSAtQbxFbr8LbS6jntzjvEb47m pNnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=zKTf9uDhde/qye5ZU0l8WIEmlr85d96e04bovtf3JKs=; b=VUkdWiiH3ILGjesX8Ha0GA90QA+keFryd30lIV0XZU/Dr6EqOq/+8exTxv4o+HYRoI QVksFHUVAFULnnsos57pDvdWmV11GKXvYKoQ2PVh4ZeqKmfTsw946iYdKKEYMQtdf/BR gEwwPMzDYlWGhbO4DKDOFLshFIhzXlB7qMY6mNR+mmFOivLpjVbLIyjTj11+YjOhyfiK IeyymFN+bbTupQngVT5AvX6tuGl9hp/s5ch32Sc36XQh0zbxHSCJhPlZB5PdVsuh+WfL RNUwC6GVSvVDD6cNyumDQWn6kELkdH+Is5xzxfE7DZHgA3eNER7D+I6VBV+u+CInzPvr 4PXg== X-Gm-Message-State: AJaThX4ncFvJxG9nd4A9aVjDxmqOlqsiAZ4vtcV+FieQN2BJ118XFFlB RCbW5TmC6NNZzh9f9GctAg6aXw== X-Google-Smtp-Source: ABhQp+TkwXeBx5TiRypxBcUTXtrXQEH0MCe2ym2pZZW7507JjnGdmzGcJhmKRSqdZXYxlQrTpd5RRQ== X-Received: by 10.28.159.72 with SMTP id i69mr1510545wme.53.1510132929355; Wed, 08 Nov 2017 01:22:09 -0800 (PST) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g99sm5392848wrd.72.2017.11.08.01.22.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 01:22:08 -0800 (PST) Date: Wed, 8 Nov 2017 10:21:56 +0100 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: Alessio Silvestro Cc: "Wiles, Keith" , "users@dpdk.org" Message-ID: <20171108092156.GC7581@bidouze.vm.6wind.com> References: <213E580E-CE31-4136-A090-4F1A9467733F@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 09:22:10 -0000 Hey Alessio, On Tue, Nov 07, 2017 at 05:13:39PM +0000, Alessio Silvestro wrote: > Dear Wiles, > > Same error also in app/pktgen-stats.c:187 and app/pktgen-latency.c:163. > I may be the cause of this compilation issue. I moved around a few PCI declarations. A new header now declares rte_pci_device elements. You should probably include in addition to . Anything that deals with PCI devices, drivers or bus functions are now in this new header. "rte_pci.h" only contains PCI utilities. > Thanks for the hint. > > Best regards, > Alessio > > -----Original Message----- > From: Wiles, Keith [mailto:keith.wiles@intel.com] > Sent: 07 November 2017 17:27 > To: Alessio Silvestro > Cc: users@dpdk.org > Subject: Re: [dpdk-users] DPDK 17.11-rc2 and Pktgen 3.4.2 make error > > Sorry, around the second fprintf() in the function. > > > On Nov 7, 2017, at 10:25 AM, Wiles, Keith wrote: > > > > > > > >> On Nov 7, 2017, at 9:18 AM, Alessio Silvestro wrote: > >> > >> Dear all, > >> > >> I have debian (4.13.0-0.bpo.1-amd64) and dpdk 17.11-rc2. > >> > >> I am trying to install pktgen (3.4.2), but when I do make I got the following error: > >> > >> > >> CC cli-functions.o > >> In file included from /usr/local/pktgen-3.4.2/app/pktgen.h:112:0, > >> from /usr/local/pktgen-3.4.2/app/cli-functions.c:57: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h: In function ”®pktgen_dump_dev_info”Æ: > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:327:28: error: > >> dereferencing pointer to incomplete type ”®struct rte_pci_device”Æ > >> di->pci_dev ? di->pci_dev->max_vfs : 0, > > > > > > The problem is that we have changed the PCI code, I have fix for this, but it needs to be cleaned up and pushed but I am having some bandwidth problems. > > > > In the pktgen-port-cfg.h file at line 327 you need to add a #if around the first fprintf(). > > > > #if RTE_VERSION < RTE_VERSION_NUM(17, 5, 0, 0) > > fprintf( … > > ); > > #endif > > > > Maybe other ones in the code too. I will try to find some time to push that patch. > > > >> ^~ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:25: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 3 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> ^ > >> /usr/local/pktgen-3.4.2/app/pktgen-port-cfg.h:343:49: warning: format ”®%d”Æ expects argument of type ”®int”Æ, but argument 4 has type ”®uint64_t {aka long unsigned int}”Æ [-Wformat=] > >> " rx_offload_capa:%4d, tx_offload_capa :%4d, reta_size :%6d, flow_type_rss_offloads:%016" PRIx64 "\n", > >> > >> Do you have any hint or patch to suggest? > >> > >> Thanks, > >> Alessio > >> > >> > >> =============================================== > >> Alessio Silvestro „¢„ģ„Ć„·„Ŗ””„·„ė„Ł„¹„Č„ķ > >> Early Stage Researcher > >> > >> Phone: +49 (0) 6221 4342 ØC 134 > >> e-mail: > >> Alessio.Silvestro@neclab.eu > >> > >> Data Science and System Platform Research Division NEC Europe Ltd. > >> Nec Laboratories Europe > >> Kurfعrsten-Anlage 36, 69115 Heidelberg, Germany > >> =============================================== > >> NEC Europe Ltd | Registered Office: Athene, Odyssey Business Park, > >> West End Road, London, HA4 6QE, GB | Registered in England 2832014 > >> > >> > > > > Regards, > > Keith > > Regards, > Keith > -- Gaëtan Rivet 6WIND