Date: Thu, 3 Oct 2013 09:04:53 +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%2Bi8Pn=RpZpwouo%2BgMMmwwKUMLzWTsxERUtvUAfxNjF4Ug@mail.gmail.com> In-Reply-To: <CALCpEUH_wnjtcqVtE=AT9PbKvbCoMpBjO-sZ-6dOxyOMJemFjQ@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> <CA%2BhQ2%2Bg0K-TfyZTjoY=oSp6rDuqT=AMiJBdyaxMxTOMUO03MzQ@mail.gmail.com> <CALCpEUH_wnjtcqVtE=AT9PbKvbCoMpBjO-sZ-6dOxyOMJemFjQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 3, 2013 at 8:51 AM, hiren panchasara <hiren.panchasara@gmail.com > wrote: > > 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/where is the exact logic/code of how card determines what traffic > goes to what queue? > Is it based on DST-MAC always? > i think it depends on how you configure it. the NIC has some flexible filters, and i do not know exactly how it is used. > 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. >> > > I see we are not playing with g.dst_mac.name much. > Let me know if you have unfinished code sitting somewhere I can look. > all i have is unfinished and is in the pkt-gen.c in the freebsd source tree (src/tools/netmap i believe) cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bi8Pn=RpZpwouo%2BgMMmwwKUMLzWTsxERUtvUAfxNjF4Ug>