From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ea0-x22d.google.com (mail-ea0-x22d.google.com [IPv6:2a00:1450:4013:c01::22d]) by dpdk.org (Postfix) with ESMTP id AD4DB58D7 for ; Fri, 31 Jan 2014 19:29:21 +0100 (CET) Received: by mail-ea0-f173.google.com with SMTP id d10so2521342eaj.32 for ; Fri, 31 Jan 2014 10:30:41 -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 :content-type; bh=0oyb03tqFKLBNcvxDdprU2SCZ5ai667edOAk/lieQLs=; b=qHnqzgtel7UNAid7Wtm/VnYOJ8XcRf8FHpZvhx3Qss0ERGoAXUk9WL2yUvtbFErvEh N/YLtZ44KO7Wj7BV0WuKBuiof/QrHraBqfyZWCG6m9iNipaUAg99L80UL6ua0QSFixxb SeLuhY8evXjmwB6YyScFUKH3wsEG0yBpsQclhi76K3kzAHNpcylnuEvbV2DEhVx/MALg yETGImVvt4ToC/1ujheVajEHFIZH8eVYvxF3lRbdjfmJXUtxwSgbxMgBl5qKzvj7aWYd CPF02eyRSnt8BsZgVg21HAdwQ3Ze1DYU3n/WlL00D0IA9rTk2fY9olMRSRBza/+fXlje WnTQ== MIME-Version: 1.0 X-Received: by 10.15.76.130 with SMTP id n2mr22276242eey.48.1391193038771; Fri, 31 Jan 2014 10:30:38 -0800 (PST) Received: by 10.14.147.5 with HTTP; Fri, 31 Jan 2014 10:30:38 -0800 (PST) In-Reply-To: References: Date: Fri, 31 Jan 2014 19:30:38 +0100 Message-ID: From: Mats Liljegren To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 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: Fri, 31 Jan 2014 18:29:22 -0000 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 function 4) sudo ifconfig em1_0 192.168.2.2 # This is the virtual function 5) ping 192.168.2.1 I can see that the ping request reaches its target, and a reply is sent back. But this reply is not received by the ping shell command. Why? Regards, Mats On Wed, Jan 29, 2014 at 6:56 PM, Mats Liljegren wrote: > 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 lost. > > Since the port is a virtual function, it seems like I cannot use > tcpdump on it to see the network traffic. There is nothing coming out > of the cable (activity light not flashing, the receiving end running > tcpdump does not see any traffic). > > I'm using two X540 with two virtual functions each. The application > runs in a KVM/Qemu environmen. > > Any suggestions how to debug this? > > Regards, > Mats