[dpdk-dev] how to build dpdk in debug mode?

2015-08-03 Thread Montorsi, Francesco
Hi all, I have searched the archives for this, without much success. Is it possible to build dpdk user-space libraries with -O0 and -g instead of -O3 ? This would make debugging via GDB much more friendly... Thanks! Francesco Montorsi

[dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0

2015-08-28 Thread Montorsi, Francesco
Hi all, I found that after unzipping dpdk-2.1.0.tar.gz if I run: # make T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc config And then # make V=1 T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc clean I get: [...] == Clean app/proc_info make -f /home

[dpdk-dev] about new timesync feature in 2.1.0

2015-08-28 Thread Montorsi, Francesco
Hi, I'm very interested in getting accurate timestamps for received packets. What is the best way to do it? I found here: http://www.wand.net.nz/trac/libtrace/browser/Intel%20DPDK%20Patches/ some patch to enable timestamping but only on e1000 driver (and honestly I don't know if that patch wor

[dpdk-dev] warnings when including DPDK headers from a C++17 source file

2018-07-13 Thread Montorsi, Francesco
Hi all, I just noticed that, because of the removal of the "register" keyword in C++17, when I compile my DPDK-enabled code with -std=c++17 I get the following: In file included from ../../../Third-Party/cpp-libs/dpdk/include/rte_ether.h:53:0, from ../../../Third-Party/cpp-

Re: [dpdk-dev] warnings when including DPDK headers from a C++17 source file

2018-07-15 Thread Montorsi, Francesco
Hi, From: Stephen Hemminger Sent: Friday, July 13, 2018 5:52 PM To: Montorsi, Francesco Cc: dev@dpdk.org Subject: Re: [dpdk-dev] warnings when including DPDK headers from a C++17 source file > Why is DPDK code using register keyword at all? It

[dpdk-dev] status of bnx2x driver?

2018-05-04 Thread Montorsi, Francesco
Hi all, I'm trying to use DPDK 17.11.2 and DPDK 18.02.1 with a Broadcom Limited NetXtreme II BCM57810 10 Gigabit Ethernet [14e4:168e] NIC. I did set CONFIG_RTE_LIBRTE_BNX2X_PMD=y And then tried the "testpmd" application. Here's what I get: EAL: Detected 32 lcore(s) EAL: Probing VFIO suppor

[dpdk-dev] release date for 17.11.3?

2018-05-17 Thread Montorsi, Francesco
Hi all, I'd like to build DPDK on Centos 7.5... I found a commit (http://dpdk.org/browse/dpdk-stable/commit/?h=17.11&id=3ee847054cc9ab62fa2c9c6dc6ba68899d620e3a) that allows that, but it will go into DPDK 17.11.3 right? Is there a release date for 17.11.3 already defined? Thanks, Francesco Mont

[dpdk-dev] release date for 17.11.3?

2018-05-18 Thread Montorsi, Francesco
Hi Thomas, Thanks for the useful information! I think I will wait till 8th of June then. Thanks, Francesco Montorsi

[dpdk-dev] where to find ethernet CRC when stripping is off

2016-01-20 Thread Montorsi, Francesco
Hi all, I need to get access to the Ethernet CRC of received packets. To do this, I'm configuring: port_conf.rxmode.hw_strip_crc = 0; Now my question is: how am I supposed to access the Ethernet CRC from a DPDK mbuf? Is the CRC just the 4 final bytes of the packets? Is this correct: uint

[dpdk-dev] where to find ethernet CRC when stripping is off

2016-01-20 Thread Montorsi, Francesco
Hi Ivan, > -Original Message- > You would be right... if the PMDs did not transparently strip the CRC in > software when hardware CRC stripping is disabled at port configuration (as > described above). > See for instance how the function ixgbe_recv_pkts_lro() in file > drivers/net/ixgbe/i

[dpdk-dev] rte_eal_init() alternative?

2015-10-08 Thread Montorsi, Francesco
Hi, > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: mercoled? 2 settembre 2015 15:10 > To: Montorsi, Francesco > Cc: dev at dpdk.org; Bruce Richardson > Subject: Re: [dpdk-dev] rte_eal_init() alternative? > > 2015-09-02

[dpdk-dev] rte_eal_init() alternative?

2015-10-09 Thread Montorsi, Francesco
Hi Panu, > -Original Message- > From: Panu Matilainen [mailto:pmatilai at redhat.com] > Sent: venerd? 9 ottobre 2015 10:26 > To: Montorsi, Francesco ; Thomas Monjalon > > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] rte_eal_init() alternative? > > > Som

[dpdk-dev] rte_eal_init() alternative?

2015-10-09 Thread Montorsi, Francesco
> > It seems the patch missed the boat :) > > Correct, sorry. I'm attaching it now. Ok, for some reason the email client is removing the attachment... I'm copying and pasting it: (the points marked as TODO are functions that still contain rte_panic() calls...) dpdk-2.1.0/lib/librte_eal/

[dpdk-dev] Accurate timestamps in received packets

2015-10-09 Thread Montorsi, Francesco
Hi all, I'm using rte_eth_rx_burst() to successfully retrieve packets from a DPDK-enabled port. I can process the packet and everything works fine. My only issue is that I cannot find any mean to retrieve a timestamp for every single packet. As a dirty-workaround I'm using gettimeofday() to time

[dpdk-dev] Accurate timestamps in received packets

2015-10-12 Thread Montorsi, Francesco
Hi Wenzhuo, > -Original Message- > From: Lu, Wenzhuo [mailto:wenzhuo.lu at intel.com] > Hi Francesco, > Why not searching ieee1588 in the dpdk git repository? Surely you'll find > something. I tried using IEEE 1588 without success. In particular I enabled it at build-time of DPDK and the

[dpdk-dev] Accurate timestamps in received packets

2015-10-12 Thread Montorsi, Francesco
Hi John, Thanks for your reply. > -Original Message- > From: Mcnamara, John [mailto:john.mcnamara at intel.com] > AFAIK, timestamping of every packet isn't supported by ixgbe/i40e nics and I > don't know about non-Intel nics. It was supported for some(?) igb nics and > hence the patch you

[dpdk-dev] how to get driver name for a given port ID

2015-10-26 Thread Montorsi, Francesco
Hi all, Is there an API to retrieve the driver name for a certain port ID before calling rte_eth_dev_configure()? My use case is: I'm trying to call rte_eth_dev_configure() with nb_rx_q=4 and found that this works for ixgbe driver but it doesn't for "rte_em_pmd" (1Gbps device): ERROR HwEmulDP

[dpdk-dev] how to use multiple RX queues on the same port

2015-10-26 Thread Montorsi, Francesco
Hi all, To avoid rx_nombuf packet drops, I'm trying to configure a DPDK port to use more than 1 RX queue... so I'm trying (on a 10Gbps card) to use 4 RX queues. The call to rte_eth_dev_configure() and the 4 calls to rte_eth_rx_queue_setup() succeed but then via the rte_eth_rx_queue_count() API I

[dpdk-dev] how to get driver name for a given port ID

2015-10-27 Thread Montorsi, Francesco
dev [mailto:dev-bounces at dpdk.org] On Behalf Of Montorsi, > Francesco > Sent: luned? 26 ottobre 2015 15:18 > To: dev at dpdk.org > Subject: [dpdk-dev] how to get driver name for a given port ID > > Hi all, > > Is there an API to retrieve the driver name for a certain port ID b

[dpdk-dev] how to use multiple RX queues on the same port

2015-10-27 Thread Montorsi, Francesco
Hi Pablo, > -Original Message- > From: De Lara Guarch, Pablo [mailto:pablo.de.lara.guarch at intel.com] > > Hi all, > > To avoid rx_nombuf packet drops, I'm trying to configure a DPDK port > > to use more than 1 RX queue... so I'm trying (on a 10Gbps card) to use 4 RX > queues. > > The cal

[dpdk-dev] rte_eal_init() alternative?

2015-09-02 Thread Montorsi, Francesco
Hi all, Currently it seems that the only way to initialize EAL is using rte_eal_init() function, correct? I have the problem that rte_eal_init() will call rte_panic() whenever something fails to initialize or in other cases it will call exit(). In my application, I would rather like to attempt

[dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0

2015-09-04 Thread Montorsi, Francesco
Hi John, > -Original Message- > From: Mcnamara, John [mailto:john.mcnamara at intel.com] > Sent: mercoled? 2 settembre 2015 16:32 > To: Montorsi, Francesco ; dev at dpdk.org > Subject: RE: "cannot use T= with gcov target" when doing "makefile clean" >

[dpdk-dev] Permanently binding NIC ports with DPDK drivers

2015-11-11 Thread Montorsi, Francesco
Hi, Is there a way to permanently (i.e., have the configuration automatically applied after reboot) bind a NIC port to DPDK? In case there's none, I'm thinking to save in my software a list of the NIC ports chosen by the user for use with DPDK and then, upon software startup to just do for

[dpdk-dev] Permanently binding NIC ports with DPDK drivers

2015-11-11 Thread Montorsi, Francesco
Hi Bruce, > -Original Message- > From: Bruce Richardson [mailto:bruce.richardson at intel.com] > I'm not aware of any way to make the bindings permanent across reboots. > What you have suggested will work, but there are probably better ways to > do the same thing. I agree... let's see if

[dpdk-dev] Permanently binding NIC ports with DPDK drivers

2015-11-13 Thread Montorsi, Francesco
Hi Panu, > -Original Message- > From: Panu Matilainen [mailto:pmatilai at redhat.com] > I've been looking into this recently, here's what I have so far: > http://laiskiainen.org/git/?p=driverctl.git > Thanks I tried the script (I just had to change /bin/sh into /bin/bash on first line) a

[dpdk-dev] Permanently binding NIC ports with DPDK drivers

2015-11-13 Thread Montorsi, Francesco
Hi John, > -Original Message- > From: Mcnamara, John [mailto:john.mcnamara at intel.com] > > The Ubuntu dpdk package for 15.10 contains system scripts with functions for > reserving hugepages and binding interfaces on bootup: > > > /etc/dpdk/dpdk.conf > /etc/dpdk/interfaces >

[dpdk-dev] rte_eth_tx_queue_setup() failing (error -22) when setting up tx queues on a VMXNET3 port...

2015-11-25 Thread Montorsi, Francesco
Hi all, I have a server running VMWare ESXi 5.5.0 and VMWare vCenter 5.5.0. On such server I created a VM with two VMXNET3 NIC cards (one for management, the other one should be used with DPDK to enable fast-RX of packets coming from other VMs / bare-metal NICs). Inside the VM I have successful

[dpdk-dev] rte_eth_tx_queue_setup() failing (error -22) when setting up tx queues on a VMXNET3 port...

2015-11-25 Thread Montorsi, Francesco
Hi Stephen, > -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > > If you read the source, you will see that it there are log messages enabled if > you configure with LIBRTE_ETHDEV_DEBUG enabled and rebuild DPDK. And > there are log messages for VMXNETE3

[dpdk-dev] how to compile kernel drivers only

2015-07-30 Thread Montorsi, Francesco
Hi all, I'm trying to compile DPDK kernel drivers (i.e., igb_uio.ko and kni.ko if I got it right) only on a certain machine. On that machine, I'm not interested in anything else. how can I tweak .config file to achieve it? I have tried to set all options to =n, except for: CONFIG_RTE_LIBRTE_EA

[dpdk-dev] how to compile kernel drivers only

2015-07-30 Thread Montorsi, Francesco
oved? 30 luglio 2015 14:23 To: Montorsi, Francesco Cc: dev at dpdk.org Subject: Re: [dpdk-dev] how to compile kernel drivers only 2015-07-30 12:17, Montorsi, Francesco: > How can I avoid building any app like dump_cfg? In app/Makefile, you'll find the options to disable: DIRS-$(CONFI

[dpdk-dev] conflict between ether_addr defined in rte_ether.h and the same structure in

2015-07-31 Thread Montorsi, Francesco
Hi all, I 'm attempting to integrate DPDK code in an existing application, which includes . That standard glibc header already provides a structure named ether_addr defined as: struct ether_addr { u_int8_t ether_addr_octet[ETH_ALEN]; } __attribute__ ((__packed__)); So the result is that gcc

[dpdk-dev] "cannot use T= with gcov target" when doing "makefile clean" with DPDK-2.1.0

2015-09-29 Thread Montorsi, Francesco
Hi Olivier, Sorry for the delay: > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > I had a look to your test case, I think the second command is not correct. The > T= parameter is not allowed for the clean target. It should be something like > this: > > # co

[dpdk-dev] Using valgrind with DPDK app

2020-07-10 Thread Montorsi, Francesco
Hi all, I would like to know if it's possible to run my DPDK application (I'm using DPDK 19.11) under Valgrind. I tried but it gets stuck apparently while accessing hugepages: AL: Detected memory type: socket_id:0 hugepage_sz:1073741824 EAL: Detected memory type: socket_id:1 hugepage_sz:1073

[dpdk-dev] how to search this mailing list? is gmane link archive broken?

2016-11-07 Thread Montorsi, Francesco
Hi all, if this was already raised, sorry for that. I noticed that the gmane archive for this mailing list is not working anymore: http://news.gmane.org/gmane.comp.networking.dpdk.devel reports "Page not found". Also I noticed that the gmane link on the dpdk.org website has been removed. T

[dpdk-dev] rte_ixgbevf_pmd not reporting dropped packets

2016-11-07 Thread Montorsi, Francesco
Hi all, I'm using DPDK inside the OS of a VM that is SR-IOV-accelerated. I noticed however that the "rte_ixgbevf_pmd" PMD does not report drops... I am sending packets at TX side at 14Mpps; at the RX side I'm using "testpmd" and it's reporting 'just' 12Mpps, but zero drops (also through xstats).

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-04 Thread Montorsi, Francesco
Hi all, I've not been following closely latest DPDK activity but my company is using DPDK and we recently upgraded to 16.07. We apply several patches to DPDK sources, to make it more similar to a "standard library" (currently it is quite intrusive: calls abort() at will, writes its own log, etc

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-04 Thread Montorsi, Francesco
Hi Olivier, > It seems the mailing list stripped your patch sent as attachment. > Can you please resend it again in the body of the mail? You're right sorry. It's attached at the end of this mail. > I think we can already redirect logs to a file by using fopencookie() + > rte_openlog_stream(). Di

[dpdk-dev] Proposal: enable redirection of DPDK logs from the user app

2016-10-05 Thread Montorsi, Francesco
Hi Olivier, > On 10/04/2016 02:28 PM, Montorsi, Francesco wrote: > > Yes, but to be honest, that seems a troublesome solution for something > > as easy as logging a string; e.g. by using fopencookie() approach, you > > don't have the concept of "log message",