From: sashiko-bot@kernel.org
To: "Daniel Borkmann" <daniel@iogearbox.net>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next 2/2] selftests/bpf: Add JIT cBPF-related instruction tests
Date: Thu, 15 Oct 2026 17:31:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-173255@kernel.org> (raw)
In-Reply-To: <20261015171917.599025-2-daniel@iogearbox.net>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] bpf: multi-line comment style violation
--
commit 50137381f50b5ae9fe8e8ed91abe51bac3560048
Author: Daniel Borkmann <daniel@iogearbox.net>
selftests/bpf: Add JIT cBPF-related instruction tests
The classic BPF cases of the removed test_bpf module ran their programs
on a hand-built skb. Run them as socket filters instead via jit_insns_cbpf
test suite. This covers all previous test_bpf cases as well as a few corner
cases beyond that.
> diff --git a/tools/testing/selftests/bpf/prog_tests/jit_insns_cbpf.c b/tools/testing/selftests/bpf/prog_tests/jit_insns_cbpf.c
> new file mode 100644
> index 0000000000000..5471c06605fe3
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/prog_tests/jit_insns_cbpf.c
[ ... ]
> + {
> + .descr = "tcpdump complex",
> + .insns = INSNS(
> + /* tcpdump -nei eth0 'tcp port 22 and (((ip[2:2] -
> + * ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0) and
> + * (len > 115 or len < 30000000000)' -d
> + */
> + BPF_STMT(BPF_LD | BPF_H | BPF_ABS, 12),
[Severity: Low]
This isn't a bug, but could we format this multi-line comment in the cases
array to match the preferred BPF subsystem style? The BPF subsystem expects
the opening /* to be on its own line, with the text starting on the next
line.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261015171917.599025-1-daniel@iogearbox.net?part=2
next prev parent reply other threads:[~2026-10-15 17:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-15 17:19 [PATCH bpf-next 1/2] selftests/bpf: Follow-up coverage to JIT instruction tests Daniel Borkmann
2026-10-15 17:19 ` [PATCH bpf-next 2/2] selftests/bpf: Add JIT cBPF-related " Daniel Borkmann
2026-10-15 17:31 ` sashiko-bot [this message]
2026-10-15 18:08 ` bot+bpf-ci
2026-10-15 19:08 ` Alexei Starovoitov
2026-10-15 19:11 ` Daniel Borkmann
2026-10-15 18:08 ` [PATCH bpf-next 1/2] selftests/bpf: Follow-up coverage to JIT " bot+bpf-ci
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=sashiko-outbox-173255@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=sashiko-reviews@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.