Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2011 03:22:17 +0900
From:      Takuya ASADA <syuu@dokukino.com>
To:        George Neville-Neil <gnn@freebsd.org>
Cc:        "Robert N. M. Watson" <rwatson@freebsd.org>, "soc-status@freebsd.org" <soc-status@freebsd.org>, Kazuya Goda <gockzy@gmail.com>
Subject:   Re: Weekly status report (27th May)
Message-ID:  <BANLkTimsD6NyDPqwXHZFLri22m_XVFu6-Q@mail.gmail.com>
In-Reply-To: <5054184174934880962@unknownmsgid>
References:  <BANLkTim=zeRhwGajksbX2fBY9snkcj1h0g@mail.gmail.com> <8259CBF7-B2E6-49C6-A7C4-6682ECBDBB9F@freebsd.org> <5054184174934880962@unknownmsgid>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>> I see the test case isn't written yet, so
>> how are you testing these changes?
>
> I modified libpcap/tcpdump just for the test - it can take extra
> argument for filtering queues.
> I'll send more detail of it when I get to home.

I added three arguments on tcpdump, 'Q' for receive queue mask, 'g'
for transmit queue mask, 'V' for other packets.
tcpdump takes these args, tell mask params to (modified) libpcap.
libpcap calls new ioctls which set queue mask on bpf descriptor.

Example usage is something like this:
tcpdump -Q 2  # only shows receive queue 2
tcpdump -g 3   # only shows transmit queue 3

Note that, current implementation only works on igb(4).
On other devices, if_rxq_num/if_txq_num and
m->m_pkthdr.rxqid/m->m_pkthdr.txqid may left uninitialized value, it
may causes unexpected behavior on multiqueue bpf.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimsD6NyDPqwXHZFLri22m_XVFu6-Q>