From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) by dpdk.org (Postfix) with ESMTP id 3155968E8 for ; Thu, 13 Feb 2014 16:30:57 +0100 (CET) Received: by mail-ee0-f43.google.com with SMTP id c41so5122277eek.30 for ; Thu, 13 Feb 2014 07:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=/eAmMU+jftQyL+xQtu5nfAXrjvBlXXDUeaLjma0bArI=; b=uUOE7UpyVObRHYlCA4x+HLR+Tdo7L4CgQ1z1r6WF90BIaHswf08UYnf8SDoDj75Mc3 GqK0xkrAisgQTdbW72EeOkyCoG69+lAahkwvISO0wHNI5rYgYhclK/1l8FUv0TqYvryn GAZfkzWz3uGfpgEjyBZ+x61+4Yp3c5lj/xRp4qocxZAykZhvOgx6m0XUUS+wAaq2Fnzm OeIYsPY7cgPixILYAABoZLe6RQCvLWq5sPuYSVyXCvg3EUFoXUSaCrJ+WvJeqsJ1ja1M EwJP9tdD/F6iEWWQVjPqIaYBdVlud2MsiGcPiP/sk7of2RrEjEFHmibMq1fq+puHmjNr kSdg== MIME-Version: 1.0 X-Received: by 10.14.110.198 with SMTP id u46mr2711875eeg.20.1392305540442; Thu, 13 Feb 2014 07:32:20 -0800 (PST) Received: by 10.14.147.5 with HTTP; Thu, 13 Feb 2014 07:32:20 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Feb 2014 16:32:20 +0100 Message-ID: From: Mats Liljegren To: "Burakov, Anatoly" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] How to debug packet sends to virtual functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 15:30:57 -0000 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 c= reating virtual devices since at least release 1.5.0), it's just that you'l= l have to set everything up yourself inside your host DPDK application (you= can't use "ip net" to set up VF devices if you're using DPDK drivers). Unf= ortunately, I'm not familiar enough with that part of the code to comment o= n what exactly you should do to make it work with igb_uio, but I can certai= nly ask around if you want. > > I also noticed that you are running KVM with virsh. We always run our VM'= s by passing QEMU command line directly, without using virsh, so unfortunat= ely I cannot be of much help here as I'm not familiar with virsh. Your best= bet would be to get whatever parameters virsh passes to QEMU and modify th= em to suit your needs and according to DPDK documentation. 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? I'm also curious whether this is how it is intended to work, or am I experiencing a strange type of bug? If not, is it documented that ifconfig is needed in the guest? I thought I've read all documentation thoroughly, but sometimes it is easy to miss the obvious anyway... While I got one instance of DPDK running, I got a problem when starting two instances of DPDK running against different virtual functions. These virtual functions stems from the same physical interfaces. Starting them one or the other works fine. I have to adapt my static arp entries since they have different MAC addresses, but this is only expected. When starting them both however, I receive no packets. If one is running and currently processing packets, it will stop doing so the instance the second instance starts. Anyone knowing what could cause such behavior? Regards Mats Liljegren