Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2013 08:05:51 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        hiren panchasara <hiren.panchasara@gmail.com>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: netmap: understanding pkg-gen.c
Message-ID:  <CA%2BhQ2%2Bg0K-TfyZTjoY=oSp6rDuqT=AMiJBdyaxMxTOMUO03MzQ@mail.gmail.com>
In-Reply-To: <CALCpEUGd837x5vNmsCXrUGV=0St7a0LeXXeOeNbLQOR8h8bgKw@mail.gmail.com>
References:  <CALCpEUHj_Mke_njM0NwzCUa1f_pXZdCy3_aaqJtKz5NUJUU8Mg@mail.gmail.com> <CA%2BhQ2%2BjYyoxpLEoz0kHm8Hikfgf8Fke-o_ctkO3fKBdGqEz7wQ@mail.gmail.com> <CALCpEUG1dM9Z6OG1BqRAPAfHciANXxaYVpezDEOUNug22QN6HQ@mail.gmail.com> <CALCpEUGi%2Boaq9JftSWX%2BR-UL%2BCVHaYwpmjvzksKANjhLcn-niA@mail.gmail.com> <CALCpEUFA6Z3ASgKFKPsWjt1HfUCFNM1iAhSte5ChNHLpi6oJLw@mail.gmail.com> <CALCpEUFJu_S2Q-EPOV1dm7q5aDYe%2BZj_MgkVoAwQP047KV8suw@mail.gmail.com> <CALCpEUGd837x5vNmsCXrUGV=0St7a0LeXXeOeNbLQOR8h8bgKw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 3, 2013 at 6:34 AM, hiren panchasara <hiren.panchasara@gmail.com
> 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 <rizzo@iet.unipi.it>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bg0K-TfyZTjoY=oSp6rDuqT=AMiJBdyaxMxTOMUO03MzQ>