]> www.infradead.org Git - nvme.git/commit
selftests: drv-net: rss_ctx: factor out send traffic and check
authorJakub Kicinski <kuba@kernel.org>
Mon, 8 Jul 2024 21:36:24 +0000 (14:36 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 9 Jul 2024 23:30:57 +0000 (16:30 -0700)
commit847aa551fa7897dbe457bfd8badd4ca22d44add1
treed8d7655e758fa53d0e8129278fe6b7f8e164a4c7
parenta0aab7d7c8605f53ea77dfaafec1dcc0bfb1f232
selftests: drv-net: rss_ctx: factor out send traffic and check

Wrap up sending traffic and checking in which queues it landed
in a helper.

The method used for testing is to send a lot of iperf traffic
and check which queues received the most packets. Those should
be the queues where we expect iperf to land - either because we
installed a filter for the port iperf uses, or we didn't and
expect it to use context 0.

Contexts get disjoint queue sets, but the main context (AKA context 0)
may receive some background traffic (noise).

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240708213627.226025-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/rss_ctx.py