From owner-freebsd-net@FreeBSD.ORG Thu Oct 3 06:05:54 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 272D5AE0 for ; Thu, 3 Oct 2013 06:05:54 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x232.google.com (mail-lb0-x232.google.com [IPv6:2a00:1450:4010:c04::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 914CA259C for ; Thu, 3 Oct 2013 06:05:53 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id z5so1562357lbh.23 for ; Wed, 02 Oct 2013 23:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=EshtF1IW3rsY+n9M5tCx9rx91nITZVOq3Lp7EICRR3g=; b=BqJDoRH7ht6h6FWmVHpvmMVjCQI+MjD+996dqGsIVyTguQLhYGA8uEbQzMbEJbrQ58 t+ROcF9pqRFfl0/dWt6ve2hrJutEp9MYxJsWiYVOjBB0X0VoqY3FCYfX7FHSuGte3+Fs u0XivqGZ/RFCy/0tED6lBLEKR8YCHr7/ueBu/4Lw4QhVQ6dwNIFBDDCqQhd08RavVfxc nwM58tWxjDhpYeVbxGx5Sbm5LmR+EJ8L7y9HLd3ekMYG/omr5MmcYi9L9JBmw2hMIERN utHaBbSMkTazIbDiAA9G0w9HO9mcvaI77txpcB70AvYQlPEwgve23cIkju71DGkClCEn cakw== MIME-Version: 1.0 X-Received: by 10.112.154.70 with SMTP id vm6mr5400833lbb.1.1380780351537; Wed, 02 Oct 2013 23:05:51 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.172.105 with HTTP; Wed, 2 Oct 2013 23:05:51 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Oct 2013 08:05:51 +0200 X-Google-Sender-Auth: 5AvRMJrq4Hw0me2YSQSRTIetQuQ Message-ID: Subject: Re: netmap: understanding pkg-gen.c From: Luigi Rizzo To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Oct 2013 06:05:54 -0000 On Thu, Oct 3, 2013 at 6:34 AM, hiren panchasara wrote: > > Thanks Luigi. >>>>> >>>>> Coming back to this thread to actually understand what's going on. >>>>> >>>>> >>>>> On Tue, Sep 24, 2013 at 8:37 PM, Luigi Rizzo wrote: >>>>> >>>>>> > >>>>>> > On this box, I have 2 interfaces igb0 (10.73.149.28) and ix1 >>>>>> (10.73.149.17) >>>>>> > and this is how I am using this binary: >>>>>> > >>>>>> > -bash-4.2$ sudo ./pkt-gen -i ix1 -f tx -n 100000000 -c 8 -p 8 -d >>>>>> > 10.73.149.17 -s 10.73.149.28 >>>>>> >>>>> > Thanks to Juli, I realized that I was doing it wrong. > > Trying to _send_ pkts from ix1 via netmap and looking at ix1's _receive_ > buffers. > > I am setting up another machine with ixgbe to have 2 different machines > for proper testing. > since you have a dual port card, you can actually run the experiment on a single machine, connecting the two ports with a cross cable and run the sender on ix1 and the receiver on ix0. But you will still see traffic only to one queue, because pkt-gen by default uses the same DST-MAC address so the way you configure RSS is irrelevant. What you could do is, when prefilling the buffers, use different mac or ip addresses. There is some unfinished code in pkt-gen.c to implement that. cheers luigi