[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Thomas Monjalon
06/12/2013 14:12, Pashupati Kumar : > From: Thomas Monjalon > > 06/12/2013 13:04, Pashupati Kumar : > > > We use bit spinlocks extensively to have compact data structures. Are > > > there any plans for adding them to DPDK in some future release? > > > > Not sure to understand your request. > > Ar

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Thomas Monjalon
Hello, 06/12/2013 13:04, Pashupati Kumar : > We use bit spinlocks extensively to have compact data structures. Are there > any plans for adding them to DPDK in some future release? Not sure to understand your request. Are you looking for that? http://dpdk.org/doc/api/rte__spinlock_8h.htm

[dpdk-dev] DPDK delaying individual packets infinitely

2013-12-06 Thread Dmitry Vyal
Hello list, For some time I've been writing a custom packet generator coupled with a packet receiver using DPDK. It works greatly when used for generating millions of packets, but unexpectedly It has troubles generating a several dozens of packets or so. The application consists of two thread

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

2013-12-06 Thread Dmitry Vyal
On 11/29/2013 04:39 PM, Thomas Monjalon wrote: > 29/11/2013 13:25, Thomas Monjalon : > > Please check that your hardware do not support invariant TSC. > It would explain why you need to fix frequency. > > I attach a simple code to test CPU feature "Invariant TSC". I compiled and ran the code on al

[dpdk-dev] How to know corresponding device from port number

2013-12-06 Thread Tetsuya.Mukawa
(2013/11/28 19:46), Richardson, Bruce wrote: >> If someone wants to implement forwarding application that receives >> packets from ETH_A and send those to ETH_B. >> Also above application is split to 3 processes like following. >> [ETH_A]-->Process_A --> [Ring_A] --> Process_B --> [Ring_B] --> Proc

[dpdk-dev] Error message "virtio-net device is already used by another driver"

2013-12-06 Thread Srinivasan J
Thomas, If I use hugetlbfs the VM does not crash and it works as expected. This is good enough and unblocks me. Thanks for the help. Regards, Srini echo 1024 > /proc/sys/vm/nr_hugepages mkdir /huge mount -t hugetlbfs nodev /huge rmmod virtio_net ./build/app/testpmd -c 0x3 -n 1 --use-

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
> 06/12/2013 14:12, Pashupati Kumar : > > From: Thomas Monjalon > > > 06/12/2013 13:04, Pashupati Kumar : > > > > We use bit spinlocks extensively to have compact data structures. > > > > Are there any plans for adding them to DPDK in some future release? > > > > > > Not sure to understand your req

[dpdk-dev] IP address range for PCAPs in pktgen

2013-12-06 Thread Susaant Kondapaneni
Hi, We are using Windriver PktGen to replay PCAP packet captures. Is there a way to specify source/destination IP range to use while replaying PCAP packet captures? If not, is there a plan to add such feature in future? Thanks Susaant

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
I am looking for spinlocks that use a single bit (bit 31) of a 32 bit word for locking. The rest of the bits in the word are left undisturbed. This enables more compact data structures as only 1 bit is consumed for the lock. Thanks Pash -Original Message- From: Thomas Monjalon [mailto:

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
Hi, We use bit spinlocks extensively to have compact data structures. Are there any plans for adding them to DPDK in some future release? Thanks Pash

[dpdk-dev] [PATCH] mk: fix pcap build with empty LIBPCAP_CFLAGS

2013-12-06 Thread Robert Sanford
Fix pcap build - In rte.sdkbuild.mk with CONFIG_RTE_LIBRTE_PMD_PCAP=y, we error-exit if LIBPCAP_CFLAGS is empty. On some distros (e.g., Centos 6.4), it is normal for "pcap-config --cflags" to output only a newline, because pcap header files reside in /usr/include/. Solution is to remove the line th

[dpdk-dev] generic load balancing

2013-12-06 Thread 吴亚东
RSS is a way to distribute packets to multi cores while packets order in the same flow still get maintained. Round robin distribution of packets may cause ooo(out of order) of packets in the same flow. We also meet this problem in ipsec vpn case. The tunneled packets are rss to the same queue if t

[dpdk-dev] generic load balancing

2013-12-06 Thread Prashant Upadhyaya
Hi, Regarding this point ?C If intel supports round robin distribution of packets in the same flow, Intel needs to provide some way like Cavium's SSO(tag switch) to maintain packet order in the same flow. And it is hard to do so because intel's cpu and nic are decoupled My main submission is

[dpdk-dev] generic load balancing

2013-12-06 Thread François-Frédéric Ozog
Can we (as a community) be leading the way for the NIC vendors? I mean, a few years ago I had the discussion with Chelsio to solve MPLS and GTP load balancing. They were happy to integrate the "requirements" in the roadmap So could we build a list of such "requirements" and publish it? NIC v