[dpdk-dev] Increasing number of txd and rxd from 256 to 1024 for virtio-net-pmd-1.1

2013-11-26 Thread Stephen Hemminger
On Tue, 26 Nov 2013 21:15:02 -0800 James Yu wrote: > Running one directional traffic from Spirent traffic generator to l2fwd > running inside a guest OS on a RHEL 6.2 KVM host, I encountered performance > issue and need to increase the number of rxd and txd from 256 to 1024. > There was not enoug

[dpdk-dev] Regarding VM live migration with SRIOV

2013-11-26 Thread Stephen Hemminger
On Wed, 27 Nov 2013 11:39:28 +0530 Prashant Upadhyaya wrote: > Hi Stephen, > > The rte_eal_pci_probe is typically called at the startup. > > Now let's say a DPDK application is running with a PCI device (doing tx and > rx) and I remove that PCI device underneath (hot plugout) > So how does the

[dpdk-dev] Increasing number of txd and rxd from 256 to 1024 for virtio-net-pmd-1.1

2013-11-26 Thread James Yu
Running one directional traffic from Spirent traffic generator to l2fwd running inside a guest OS on a RHEL 6.2 KVM host, I encountered performance issue and need to increase the number of rxd and txd from 256 to 1024. There was not enough freeslots for packets to be transmitted in this routine

[dpdk-dev] Using dpdk in KVM guest with sr-iov pass-thru

2013-11-26 Thread Jaeyong Yoo
Hello, I'm having trouble using l2fwd example on top of KVM guest with sr-iov. Here goes the detailed description: Symptoms: If I run l2fwd dpdk-app, this app does not receive any packets. Even worse, pass-thru-ed device in KVM guest is not receiving any interrupts and more over, PF in host

[dpdk-dev] Regarding VM live migration with SRIOV

2013-11-26 Thread Stephen Hemminger
On Wed, 27 Nov 2013 10:09:09 +0530 Prashant Upadhyaya wrote: > Hi, > > Let me be more specific. > Does DPDK support hot plugin/plugout of PCI devices ? > What typically needs to be done if this is to be achieved inside an > application. > > Typically, the NIC PF or VF appears to the DPDK appli

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

2013-11-26 Thread Tetsuya.Mukawa
Hi, I have a question about how to know corresponding device from port number. For example, if I have 4 Ethernet devices and 2 Ring PMDs, I will get 6 ports during initialization. In the case, how can I know which port corresponds last Ring PMD? Regards, Tetsuya Mukawa

[dpdk-dev] Question: Can't make pcap and refcnt to match

2013-11-26 Thread Thomas Monjalon
Hello, 26/11/2013 16:42, Robert Sanford : > I've been meaning to submit a change, but I'm not familiar with the > process. The process is to send your patch with git (format-patch + send-email). You have to set a short title and a longer commit log explaining what was the problem and how you fix

[dpdk-dev] [PATCH] pmd_pcap: fixed incorrect mbuf allocation

2013-11-26 Thread Richardson, Bruce
The mbufs returned by the pcap pmd RX function were constantly reused, instead of being allocated on demand. This has been fixed. Signed-off-by: Bruce Richardson --- lib/librte_pmd_pcap/rte_eth_pcap.c | 37 +-- 1 files changed, 26 insertions(+), 11 deletions(-) d

[dpdk-dev] l2fwd program reported 100Mbps on a 10Gbps physical port using virtio or e1000 port in CentOS guest OS using DPDK 1.3.1r2

2013-11-26 Thread James Yu
I have a Ubuntu 12.04.3 LTS (Linux 3.2.0-53-generic) KVM host. The guest OS is a CentOS 32bit (CentOS 6.2, Linux 2.6.32-220.el6.i686). There are two 10G ports on the KVM host with the following kvm. root at openstack1:~# kvm --version QEMU emulator version 1.2.0 (qemu-kvm-1.2.0), Copyright (c) 2003

[dpdk-dev] Question: Can't make pcap and refcnt to match

2013-11-26 Thread Mats Liljegren
I have had stability problems when using pcap in my little application. My application is a simple benchmark applications that is trying to see how much data I can send and receive. It has one lcore per NIC, where each lcore handles transmit and receive. On the hardware, I make a loopback between

[dpdk-dev] Question: Can't make pcap and refcnt to match

2013-11-26 Thread Richardson, Bruce
Hi Mats, yes, you are right, there is an issue in the pcap driver that it is not allocating mbufs correctly. We are working on a fix. Regards, /Bruce > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mats Liljegren > Sent: Tuesday, November 26, 2013 1:07 PM

[dpdk-dev] [PATCH] compilation fixes for ICC

2013-11-26 Thread Richardson, Bruce
Compilation fixes for ICC ICC requires an initializer be given for the static variables, so adding one in cases where one wasn't previously given. --- lib/librte_pmd_e1000/igb_rxtx.c |6 -- lib/librte_pmd_ixgbe/ixgbe_rxtx.c |6 -- 2 files changed, 8 insertions(+), 4 deletions(-)

[dpdk-dev] Question: Can't make pcap and refcnt to match

2013-11-26 Thread Robert Sanford
Hi Bruce, We also found buffer overflow problems with the pcap driver. 1) Frame may be longer than mbuf. 2) Caplen may be less than original packet. I've been meaning to submit a change, but I'm not familiar with the process. Here is a diff of the relevant code in rte_eth_pcap.c: if (un

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

2013-11-26 Thread Richardson, Bruce
> > Hi, > > I have a question about how to know corresponding device from port > number. > For example, if I have 4 Ethernet devices and 2 Ring PMDs, I will get 6 ports > during initialization. > In the case, how can I know which port corresponds last Ring PMD? [BR] Firstly, to identify the ring