[dpdk-dev] How to debug packet sends to virtual functions

2014-02-17 Thread Mats Liljegren
>>> It's the latter, i.e. two primary processes running DPDK on the same VM but >>> different VF devices. The VF devices belongs to the same physical devices >>> though. >> >> I'll try that as well. > > If you need more help with how we set things up, I'll be happy to help you. I found the bug, it

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-17 Thread Burakov, Anatoly
> I found the bug, it was an illegal arp entry that I had created causing the > problem. So this case has been solved. > > I re-checked this ifconfig issue, and now I can get it to work without > ifconfig > in the guest. Not sure why it didn't work without it previously, but > apparently, there i

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-17 Thread Mats Liljegren
Hi Anatoly, >> The guest starts with loading the igbvf kernel driver, uses ifconfig >> up, >> then loads and binds to igb_uio. After that, DPDK works. If I skip any step >> here it doesn't work. Skipping "ifconfig" step resulted in packets being >> received but I couldn't send them, they just go

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-17 Thread Burakov, Anatoly
Hi Mats > The guest starts with loading the igbvf kernel driver, uses ifconfig up, > then loads and binds to igb_uio. After that, DPDK works. If I skip any step > here it doesn't work. Skipping "ifconfig" step resulted in packets being > received but I couldn't send them, they just got queued up

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-17 Thread Mats Liljegren
>> I finally got things working. I apparently missed an "ifconfig up" in >> the >> guest, before starting dpdk. I'm still confused why this would be needed. Is >> dpdk unable to do a full initialization of the virtual function from the >> guest? >> > You wouldn't be able to call ifconfig on your

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-13 Thread Mats Liljegren
On Tue, Feb 4, 2014 at 2:40 PM, Burakov, Anatoly wrote: > Hi Mats > > Technically, you can use igb_uio on the host as well (DPDK PMD supports > creating virtual devices since at least release 1.5.0), it's just that you'll > have to set everything up yourself inside your host DPDK application (yo

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-13 Thread Burakov, Anatoly
Hi Mats > Hi Anatoly, > > I finally got things working. I apparently missed an "ifconfig up" in > the > guest, before starting dpdk. I'm still confused why this would be needed. Is > dpdk unable to do a full initialization of the virtual function from the > guest? > You wouldn't be able to ca

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread jigsaw
Hi Mats, Yes the virsh xml is created in essentially the same way. And the setup in host is also the same as yours. But no PCI passthru. As I understand, in a PF-VF deployment it makes no sense for PCI passthru, coz the PCI device must be visible and under control of host. (Pls correct me if Im wr

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Mats Liljegren
jegren.mats2 at gmail.com] >> Sent: Tuesday, February 04, 2014 11:48 AM >> To: Burakov, Anatoly >> Cc: dev at dpdk.org >> Subject: Re: [dpdk-dev] How to debug packet sends to virtual functions >> >> Hi Anatoly, >> >> Thanks for the clarification. The

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Burakov, Anatoly
> -Original Message- > From: Mats Liljegren [mailto:liljegren.mats2 at gmail.com] > Sent: Tuesday, February 04, 2014 1:04 PM > To: Burakov, Anatoly > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] How to debug packet sends to virtual functions > > Hi Anatoly, >

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread jigsaw
Hi Mats, I didn't have any deviation. What I did is just loading ixgbe (with extra params for vf, as you mentioned in your first email), and DPDK is up and running in guest. Of course I also followed section 8.10 of the DPDK release notes. I can switch between DPDK and ixgebvf in guest at runtime

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Mats Liljegren
rakov, Anatoly wrote: >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mats Liljegren >> Sent: Tuesday, February 04, 2014 10:45 AM >> To: jigsaw >> Cc: dev at dpdk.org >> Subject: Re: [dpdk-dev] How to debug packet se

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Mats Liljegren
Hi Qinglai, How did you configure the PCI passthrough in KVM? Did you use command line parameter as described in the instructions, or do you use virsh XML files, or maybe using virt-manager? The steps that works best (i.e. can receive but not transmit) are: 1) sudo modprobe ixgbe max_vfs=2 2) su

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread jigsaw
Hi Mats, I've tried vf with 82599EB and it works fine. As long as the VF is visible in guest, DPDK's VF driver should work just as ixgbevf, which shares more or less the same code. I don't understand why you would expect DPDK at guest to work as VF, while the host has no ixgbe loaded. To make fur

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Burakov, Anatoly
> -Original Message- > From: Mats Liljegren [mailto:liljegren.mats2 at gmail.com] > Sent: Tuesday, February 04, 2014 11:48 AM > To: Burakov, Anatoly > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] How to debug packet sends to virtual functions > > Hi Anat

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Mats Liljegren
Hi Qinglai, Thanks for the response! My previous attempt was with ixgbe loaded in the host. I also needed to load ixgbevf, but this seems to be because of a short-coming in libvirt. Maybe loading ixgbevf and then unbind it when running the guest is what causes my problems. I could receive packets

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Burakov, Anatoly
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Mats Liljegren > Sent: Tuesday, February 04, 2014 10:45 AM > To: jigsaw > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] How to debug packet sends to virtual functions > > Hi Qing

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-04 Thread Mats Liljegren
This is my fourth mail in my desperate attempt to get DPDK running in KVM and no comments so far, not even any "it works for me". Am I the only one crazy enough to believe that this can be done? Anyway, out of desperation I tried to get it running without having ixgbe or ixgbevf kernel modules loa

[dpdk-dev] How to debug packet sends to virtual functions

2014-02-03 Thread Mats Liljegren
Never mind, I was hit by the infamous MAC spoofing... I got it working on both the host and the guest using ixgbevf driver, so apparently the cables are correctly attached. Using DPDK is still no-go. It can receive packets, but when sending the packets the function returns success, but the driver

[dpdk-dev] How to debug packet sends to virtual functions

2014-01-31 Thread Mats Liljegren
I have a follow-up on this: ixgbe version 3.13.10-k ixgbevf version 2.7.12-k (These are what was provided by Ubuntu 13.10) I tried the following sequence on the host, before starting the guest: 1) sudo rmmod ixgbe 2) sudo modprobe ixgbe max_vfs=2 3) sudo ifconfig em1 up # This is the physical f

[dpdk-dev] How to debug packet sends to virtual functions

2014-01-29 Thread Mats Liljegren
I'm trying to get a modified version of the l2fwd example running, and have problems with packets being silently thrown away. I can receive packets, and my printf's indicates that the packets are being sent to the correct port, using correct MAC address as source address. And still, the packets are