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

2013-11-20 Thread elevran
Hi Jeff, Understood and that makes sense. Thanks for the reply. Would it be possible to generalize your use case for NULL, as need for adding special marker pointers in order to either get cache alignment or signal the ring consumer (e.g. null object implies end of transmission)? I think that ch

[dpdk-dev] ways to generate 40Gbps with two NICs x two ports?

2013-11-20 Thread jinho hwang
On Tue, Nov 19, 2013 at 4:38 PM, Wiles, Roger Keith wrote: > > I do not think a newer version will effect the performance, but you can try > it. > > git clone git://github.com/Pktgen/Pktgen-DPDK > > This one is 2.2.5 and DPDK 1.5.0 > > > Keith Wiles, Principal Technologist for Networking member o

[dpdk-dev] [PATCH 1/2] igb/ixgbe: ETH_MQ_RX_NONE should disable RSS

2013-11-20 Thread Prashant Upadhyaya
Hi, So if I have multiple queues and was using ETH_MQ_RX_NONE (and therefore utilizing RSS), it will stop working for me now after this patch ? Regards -Prashant -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Ivan Boule Sent: Wednesday, November 20, 2013 3:20 P

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

2013-11-20 Thread Etai Lev-Ran
Hi Pepe, I?m assuming you?re creating and accessing the ring safely (i.e., single/multiple consumers and producers). Based on the code, these return values are possible if the ring somehow got a NULL object pointer enqueued to it. >From the ring?s perspective the entries are valid, and

[dpdk-dev] [PATCH 1/2] igb/ixgbe: ETH_MQ_RX_NONE should disable RSS

2013-11-20 Thread Thomas Monjalon
20/11/2013 11:06, Prashant Upadhyaya : > So if I have multiple queues and was using ETH_MQ_RX_NONE (and therefore > utilizing RSS), it will stop working for me now after this patch ? Yes, you should use ETH_MQ_RX_RSS to explicitly enable RSS. >

[dpdk-dev] [PATCH 2/2] igb/ixgbe: allow RSS with only one Rx queue

2013-11-20 Thread Thomas Monjalon
20/11/2013 10:37, Ivan Boule : > On 11/19/2013 02:03 PM, Maxime Leroy wrote: > > It should be possible to enable RSS with a single Rx queue. > > The RSS hash can be useful independently of the number of RX queues. > > Hence, DPDK applications can use the hardware-computed RSS hash to > > manage in

[dpdk-dev] [PATCH 1/2] igb/ixgbe: ETH_MQ_RX_NONE should disable RSS

2013-11-20 Thread Thomas Monjalon
20/11/2013 10:49, Ivan Boule : > On 11/19/2013 02:03 PM, Maxime Leroy wrote: > > As explained in rte_ethdev.h, ETH_MQ_RX_NONE allows to not choose > > between RSS, DCB > > or VMDQ modes for the selection of a rx queue. > > > > But the igb/ixgbe code always silently selects the RSS mode with > > ET

[dpdk-dev] [PATCH 1/2] igb/ixgbe: ETH_MQ_RX_NONE should disable RSS

2013-11-20 Thread Ivan Boule
On 11/19/2013 02:03 PM, Maxime Leroy wrote: > As explained in rte_ethdev.h, ETH_MQ_RX_NONE allows to not choose > between RSS, DCB > or VMDQ modes for the selection of a rx queue. > > But the igb/ixgbe code always silently selects the RSS mode with > ETH_MQ_RX_NONE. This patch > fixes this incohe

[dpdk-dev] [PATCH 2/2] igb/ixgbe: allow RSS with only one Rx queue

2013-11-20 Thread Ivan Boule
On 11/19/2013 02:03 PM, Maxime Leroy wrote: > It should be possible to enable RSS with a single Rx queue. > The RSS hash can be useful independently of the number of RX queues. > Hence, DPDK applications can use the hardware-computed RSS hash to > manage in software different IP packet flows. > >

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

2013-11-20 Thread Jeff Venable
I was using NULLs in the ring to cache-line pad and maintain alignment during burst dequeue. The receiving code discards the NULLs as NOPs. Jeff On Wed, Nov 20, 2013 at 1:19 AM, Etai Lev-Ran wrote: > > > Hi Pepe, > > > > I?m assuming you?re creating and accessing the ring safely (i.e., > sing

[dpdk-dev] ixgbe driver loading in dpdk and enabling flow director

2013-11-20 Thread Vishwanathan Somasundaram
Hi, I am able to load the igb_uio driver and run my application on dpdk with RSS all fine. But when I try to enable flow director mask, I get an error. When I dig into the code, noticed that igb driver does not support flow director, however ixgbe driver supports. Since we have loaded igb drive

[dpdk-dev] 82546EB Copper issue

2013-11-20 Thread Thomas Monjalon
Hello, 19/11/2013 23:44, Ognjen Joldzic : > Recently I came across a 82546EB Dual-port Gigabit Ethernet (Copper) NIC > and tried to include it in our current DPDK setup. However, the card > doesn't seem to be supported (I was unable to bind the igb_uio driver). > There was a post in mailing list e