mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Borkmann <daniel@iogearbox.net>
To: Qiliang Yuan <odys.yuan@gmail.com>,
	Andrii Nakryiko <andrii@kernel.org>,
	Eduard Zingerman <eddyz87@gmail.com>,
	Ihor Solodrai <ihor.solodrai@linux.dev>,
	Alexei Starovoitov <ast@kernel.org>,
	Kumar Kartikeya Dwivedi <memxor@gmail.com>,
	Martin KaFai Lau <martin.lau@linux.dev>,
	Song Liu <song@kernel.org>,
	Yonghong Song <yonghong.song@linux.dev>,
	Jiri Olsa <jolsa@kernel.org>,
	Emil Tsalapatis <emil@etsalapatis.com>,
	Shuah Khan <shuah@kernel.org>,
	Nikolay Aleksandrov <razor@blackwall.org>
Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf-next v2] selftests/bpf: Record only the test ICMP echo in tc8 of tc_netkit_scrub
Date: Fri, 16 Oct 2026 12:25:23 +0200	[thread overview]
Message-ID: <bc6ba1a7-8a96-4f0c-86a9-51a6e397f4ee@iogearbox.net> (raw)
In-Reply-To: <20261016-selftests-bpf-tc-netkit-scrub-v2-1-b484a7ce2a63@gmail.com>

On 10/16/26 5:25 AM, Qiliang Yuan wrote:
> tc_netkit_scrub attaches tc8 to the primary netkit device, sends an ICMP
> echo with a mark and a priority through it, and checks the mark and the
> priority that tc8 saw against what the scrub mode lets through.
> 
> tc8 records the mark and priority of every packet it sees, and the
> device also carries what the system sends on its own once the device
> is up, like IPv6 neighbor discovery or the mDNS of avahi-daemon. When
> such a packet goes out after the echo, it overwrites what tc8 recorded,
> and the test finds a mark and a priority of 0.
> 
> Record only IPv4 ICMP packets in tc8.
> 
> tc_netkit_scrub run 100 times on a bpf-next kernel with KASAN enabled,
> x86_64 VM with 32 vCPUs and avahi-daemon running, before and after this
> patch:
> 
>              before                                after
>    outcome   2 of 100 failed (mark and priority 0)   0 of 100 failed
> 
> Fixes: 716fa7dadf11 ("selftests/bpf: Extend netkit tests to validate skb meta data")
> Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com>
> ---
> V1 -> V2:
> - Check the packet in tc8 the way tc1 and tc7 do, with
>    __bpf_constant_htons() and a goto out for each check (Daniel)
> - Add before/after data
Looks good, took this into bpf-next, thanks!

      reply	other threads:[~2026-10-16 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-16  3:25 Qiliang Yuan
2026-10-16 10:25 ` Daniel Borkmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bc6ba1a7-8a96-4f0c-86a9-51a6e397f4ee@iogearbox.net \
    --to=daniel@iogearbox.net \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=odys.yuan@gmail.com \
    --cc=razor@blackwall.org \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®