[dpdk-dev] intel x540-at2

2014-01-08 Thread Jose Gavine Cueto
Hi, Just to let you know that the invalid instruction error above went away when AVX was enabled using host model cpu mode in the VM. Thanks, Pepe On Mon, Jan 6, 2014 at 2:03 PM, Jose Gavine Cueto wrote: > Hi Thomas, > > On Sun, Jan 5, 2014 at 10:54 PM, Thomas Monjalon < > thomas.monjalon at 6

[dpdk-dev] [PATCH 0/2] RFC v2: Introduce if_index field to struct rte_eth_dev_info

2014-01-08 Thread Mats Liljegren
This is my second attempt. I have now splitted the patch into a generic and a pcap-specific. I also use interface index instead of interface name. Mats Liljegren (2): Introduce if_index field to struct rte_eth_dev_info pcap: Fill in if_index field for rte_eth_dev_info_get() calls lib/librte

[dpdk-dev] [PATCH 1/2] Introduce if_index field to struct rte_eth_dev_info

2014-01-08 Thread Mats Liljegren
This field is intended for pcap to describe the name of the interface as known to Linux. It is an interface index, but can be translated into an interface name using if_indextoname() function. When using pcap, interrupt affinity becomes important, and this field gives the application a chance to e

[dpdk-dev] [PATCH 2/2] pcap: Fill in if_index field for rte_eth_dev_info_get() calls

2014-01-08 Thread Mats Liljegren
Signed-off-by: Mats Liljegren --- lib/librte_pmd_pcap/rte_eth_pcap.c | 39 ++ lib/librte_pmd_pcap/rte_eth_pcap.h | 6 -- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/lib/librte_pmd_pcap/rte_eth_pcap.c b/lib/librte_pmd_pcap/rte_eth_pcap.

[dpdk-dev] Unable to get RSS to work in testpmd and load balancing question

2014-01-08 Thread Dan Kan
I'm evaluating DPDK using dpdk-1.5.1r1. I have been playing around with the test-pmd sample app. I'm having a hard time to get RSS to work. I have a 2-port 82599 Intel X540-DA2 NIC. I'm running the following command to start the app. sudo ./testpmd -c 0x1f -n 2 -- -i --portmask=0x3 --nb-cores=4 --

[dpdk-dev] Does the rte_eth_tx_burst() function is multi-threaded safe when sending pkt in same port and same queue ?

2014-01-08 Thread Stephen Hemminger
The rx and tx functions are safe only if a queue is not shared by multiple threads (or the threads synchronize through some other mechanism). The safest design is to only use a queue on a single core. You will see different architectures in the examples. Some use one queue per core, and others use

[dpdk-dev] [PATCH 1/2] Introduce if_index field to struct rte_eth_dev_info

2014-01-08 Thread Stephen Hemminger
Technically in Linux ifindex is unsigned 32 bit value. And 0 is reserved as a marker. Therefore why not use that semantic. On Wed, Jan 8, 2014 at 1:46 AM, Mats Liljegren wrote: > This field is intended for pcap to describe the name of the interface > as known to Linux. It is an interface index, b