From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by dpdk.org (Postfix) with ESMTP id AB315159 for ; Fri, 4 Apr 2014 04:41:19 +0200 (CEST) Received: by mail-pa0-f41.google.com with SMTP id fa1so2780289pad.0 for ; Thu, 03 Apr 2014 19:42:53 -0700 (PDT) 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 :content-type; bh=aBWPG/qIY/sR4+V/uYTXcy6mi3lIv7XLeK7T3dVOR1k=; b=AMnbMYTo2Ziv1KMgp6xNkyN9EXSOBl+yeFyi5Qa8aQwG9HfGTAXzgzfisFS+q0bwdF ebvhC2z9pOvYIZbDwg005a5F1aHlq/O3KT/Uzn5d8Ya3a0lDkS85fL6QafIxmM+eAqLs NlQezfA0HHpPpegM6Jg03eatwZcyqKNLMbWsQyKWSZZE693J9nfYroRF4paaTIP5d00h xnxNfBoyjcblHEL+ApUJkdJr92m7/MsYQ9hu62GZf5VBE2Hx7WqQ7RCf9Eq+lJbhO/bE /DstokiFaiZcdnWQm5CkpDCsgnNZ4hNwN8zSw+WKrB6siyp4pcD6vtBxvS+ZDJEhz5IK ++dA== MIME-Version: 1.0 X-Received: by 10.68.220.230 with SMTP id pz6mr11836228pbc.24.1396579373651; Thu, 03 Apr 2014 19:42:53 -0700 (PDT) Received: by 10.70.43.201 with HTTP; Thu, 3 Apr 2014 19:42:53 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Apr 2014 10:42:53 +0800 Message-ID: From: William Tu To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] VM does not receive any packets from testpmd using SR-IOV VF PMD 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: Fri, 04 Apr 2014 02:41:20 -0000 Hi, After digging into the problem and read through discussion in http://article.gmane.org/gmane.comp.networking.dpdk.devel/1393/match=vf, now my DPDK testpmd could receive packet using SRIOV VF in VM. In my case, the DPDK manual section 9.2 step 10 should not apply. If in host, DPDK takes over the PF ixgbe driver, then VF in VM does not work at all (I could run the testpmd but seeing no tx/rx packet). I got "PMD: Unhandled Msg 00000006" after dpdk takes over the PF ixgbe driver. Another issue I found is that when using Pktgen-DPDK, setting the destination mac address using "pktgen.dst_mac("all", "0011:2233:4455");" does not work. The outgoing packet always has dst_mac "0000:0000:0000". As a result, I use "pktgen.set_mac("all", "0011:2233:4455");" and it works fine. Regards, William On Fri, Mar 28, 2014 at 4:56 PM, William Tu wrote: > Hi folks, > > I have two Intel Xeon servers connected back-to-back using Intel 82599 > NICs (a sender to a receiver). I followed the steps in DPDK manual section > 9.3 and use single VF direct pass-through to the VM and run testpmd on the > VF at the receiver. At the sender side, I run Pktgen and program the VF's > MAC address as destination mac and sends them out to the VM at 50% rate. > > After booting the VM, according to the manual step 10, I need to take over > the physical function by running the testpmd at host side. Then in VM I > start the testpmd. The testpmd in VM starts ok without any error, and I > also check the "show port info all". However, while I keep sending packets > to the VM, the "show port stats all" always reports 0 RX-packet. Actually > no packet rx/tx at all. > > I've check that without running VM, the sender indeed could send packet to > the receiver server. I'm wondering how to debug this issue and any comments > are very appreciated. > btw, one weird thing is that I try to do "set promisc all on", however I > check the port info and it is always disabled. > > Thank you. > > Regards, > William > >