[dpdk-dev] Query regarding multiple processes in DPDK

2013-11-22 Thread Prashant Upadhyaya
Thanks Bruce, I think your suggested example of multi_process answers my questions. Regards -Prashant -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Prashant Upadhyaya Sent: Friday, November 22, 2013 7:10 PM To: Richardson, Bruce; dev at dpdk.org Subject: Re: [d

[dpdk-dev] Query regarding multiple processes in DPDK

2013-11-22 Thread Prashant Upadhyaya
Hi Bruce, Thanks. Regarding your comment -- [BR] It will depend upon the application, but in most cases you probably want to have slightly different code paths for primary and secondary instances. For example, if a process is running as primary instance, it will probably call rte_mempool_creat

[dpdk-dev] Query regarding multiple processes in DPDK

2013-11-22 Thread Prashant Upadhyaya
Hi guys, The DPDP programmer's guide mentions - === The EAL also supports an auto-detection mode (set by EAL --proc-type=auto flag), whereby an Intel(r) DPDK process is started as a secondary instance if a primary instance is already running. === So does this mean that if I have a DPDK exe foo.o

[dpdk-dev] Sporadic errors while initializing NICs in example applications, dpdk-1.5.0r1

2013-11-22 Thread Dmitry Vyal
Hi, I'm experiencing weird problems with running dpdk examples on my server running ubuntu-12.04. Application either manages to use ethernet ports or doesn't. For example, this is results of two identical sequental runs of l2fwd: *

[dpdk-dev] How to calculate checksum automically with NIC when sending a packet?

2013-11-22 Thread Vladimir Medvedkin
Of course you have to properly set m->pkt.vlan_macip.f.l2_len and m->pkt.vlan_macip.f.l3_len fields. Regards, Vladimir 2013/11/22 Vladimir Medvedkin > Hi, > > If you need only ip checksum: > struct rte_mbuf *m; > m->ol_flags |= PKT_TX_IP_CKSUM; > > if you need to calculate tcp checksum add als

[dpdk-dev] How to calculate checksum automically with NIC when sending a packet?

2013-11-22 Thread Vladimir Medvedkin
Hi, If you need only ip checksum: struct rte_mbuf *m; m->ol_flags |= PKT_TX_IP_CKSUM; if you need to calculate tcp checksum add also PKT_TX_TCP_CKSUM flag to ol_flags field and caclulate pseudoheader checksum (see get_ipv4_psd_sum() in app/test-pmd/csumonly.c) struct tcp_hdr *th; th->cksum

[dpdk-dev] [dpdk-announce] DPDK 1.5.0r2 released

2013-11-22 Thread Thomas Monjalon
The new release can be downloaded here: http://dpdk.org/browse/dpdk/tag/?id=v1.5.0r2 Changelog - fixes for: * RSS enabling * ixgbe offloading * endless loop on restart with 4096 ring entries * build with various option

[dpdk-dev] [PATCH] doc: add RTE_KERNELDIR to help

2013-11-22 Thread Thomas Monjalon
22/11/2013 14:07, Olivier MATZ : > acked! > > PS: Does it pass all the non-regression tests? ;) Yes, "make help" is still printing very helpful lines :) So I've pushed it. -- Thomas

[dpdk-dev] [PATCH] doc: add RTE_KERNELDIR to help

2013-11-22 Thread Olivier MATZ
Hello Thomas, On 11/22/2013 01:53 PM, Thomas Monjalon wrote: > The default value is /lib/modules/$(uname -r)/build > > Signed-off-by: Thomas Monjalon > --- > doc/build-sdk-quick.txt |1 + > 1 file changed, 1 insertion(+) acked! PS: Does it pass all the non-regression tests? ;)

[dpdk-dev] [PATCH] doc: add RTE_KERNELDIR to help

2013-11-22 Thread Thomas Monjalon
The default value is /lib/modules/$(uname -r)/build Signed-off-by: Thomas Monjalon --- doc/build-sdk-quick.txt |1 + 1 file changed, 1 insertion(+) diff --git a/doc/build-sdk-quick.txt b/doc/build-sdk-quick.txt index ca39c33..bf7c350 100644 --- a/doc/build-sdk-quick.txt +++ b/doc/build-sdk-

[dpdk-dev] Sporadic errors while initializing NICs in example applications, dpdk-1.5.0r1

2013-11-22 Thread Thomas Monjalon
Hello, 22/11/2013 13:29, Dmitry Vyal : > EAL: PCI device :02:00.0 on NUMA socket -1 > EAL: probe driver: 8086:10fb rte_ixgbe_pmd > EAL: PCI memory mapped at 0x7f6b83687000 > EAL: PCI memory mapped at 0x7f6b83683000 > EAL: PCI device :02:00.1 on NUMA socket -1 > EAL: probe driver: 8

[dpdk-dev] [PATCH 0/3] pcap build fixes

2013-11-22 Thread Thomas Monjalon
22/11/2013 11:24, David Marchand : > Fix build with old pcap library. > Make it possible to specify which pcap library to use. > > David Marchand (3): > pcap: use pcap-config to guess compilation flags > pcap: fix build with old libpcap > pcap: fix build when pcap_sendpacket is unavailable

[dpdk-dev] Query regarding multiple processes in DPDK

2013-11-22 Thread Richardson, Bruce
Hi Prashant > === > The EAL also supports an auto-detection mode (set by EAL --proc-type=auto > flag), whereby an Intel(r) DPDK process is started as a secondary instance if > a primary instance is already running. > === > > So does this mean that if I have a DPDK exe foo.out, then when I run the

[dpdk-dev] [PATCH 3/3] pcap: fix build when pcap_sendpacket is unavailable

2013-11-22 Thread David Marchand
Before libpcap 1.0.0, pcap_sendpacket was not available on linux targets (unless backported). When using such a library, we won't be able to send packet on the wire, yet we can still dump packets into a pcap file. Signed-off-by: David Marchand --- lib/librte_pmd_pcap/rte_eth_pcap.c | 12 ++

[dpdk-dev] [PATCH 2/3] pcap: fix build with old libpcap

2013-11-22 Thread David Marchand
For backwards compatibility, pcap.h includes pcap/pcap.h. Hence, to be compatible with older pcap libraries, we must include pcap.h. Signed-off-by: David Marchand --- lib/librte_pmd_pcap/rte_eth_pcap.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_pcap/rte

[dpdk-dev] [PATCH 1/3] pcap: use pcap-config to guess compilation flags

2013-11-22 Thread David Marchand
Use pcap-config to populate CFLAGS and LDFLAGS. LIBPCAP_CFLAGS and LIBPCAP_LDFLAGS can be used to override this (useful when cross-compiling). Signed-off-by: David Marchand --- app/test-pmd/Makefile |4 doc/build-sdk-quick.txt |2 ++ mk/rte.app.mk |

[dpdk-dev] [PATCH 0/3] pcap build fixes

2013-11-22 Thread David Marchand
Fix build with old pcap library. Make it possible to specify which pcap library to use. David Marchand (3): pcap: use pcap-config to guess compilation flags pcap: fix build with old libpcap pcap: fix build when pcap_sendpacket is unavailable app/test-pmd/Makefile |4

[dpdk-dev] glibc 2.1

2013-11-22 Thread Michael Quicquaro
Right, thanks. I had a little brain fart. On Fri, Nov 22, 2013 at 4:42 AM, Richardson, Bruce < bruce.richardson at intel.com> wrote: > The Intel DPDK should work fine on RHEL 6.4. There should be no need to > update your glibc, since this is subversion 12 (> 7), rather than 1.2. > Regards, > /B

[dpdk-dev] How to calculate checksum automically with NIC when sending a packet?

2013-11-22 Thread William Rolinson
RT~

[dpdk-dev] 82546EB Copper issue

2013-11-22 Thread Thomas Monjalon
22/11/2013 08:30, Ognjen Joldzic : > Actually, the support for 82546EB Copper NIC is already there. All it takes > to make it work is one line in rte_pci_dev_ids.h: > > RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82546EB_COPPER) > > Not much of a patch, I guess :) Please, I would pr

[dpdk-dev] rte_ring_sc_dequeue returns 0 but sets packet to NULL

2013-11-22 Thread Richardson, Bruce
> IMHO, adding NULL objects is likely an error not a legitimate use case for > adding ring elements. > > Can anyone think of a use case where adding NULL pointer objects makes > sense? > [BR] As well as the use case already mentioned of passing using NULLs, there is also the scenario where we wa

[dpdk-dev] glibc 2.1

2013-11-22 Thread Richardson, Bruce
The Intel DPDK should work fine on RHEL 6.4. There should be no need to update your glibc, since this is subversion 12 (> 7), rather than 1.2. Regards, /Bruce > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michael Quicquaro > Sent: Thursday, November 21, 2

[dpdk-dev] 82546EB Copper issue

2013-11-22 Thread Ognjen Joldzic
Hi. Actually, the support for 82546EB Copper NIC is already there. All it takes to make it work is one line in rte_pci_dev_ids.h: RTE_PCI_DEV_ID_DECL_EM(PCI_VENDOR_ID_INTEL, E1000_DEV_ID_82546EB_COPPER) Not much of a patch, I guess :) On Wed, Nov 20, 2013 at 8:57 AM, Thomas Monjalon wrote: > H