All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexei Starovoitov" <alexei.starovoitov@gmail.com>
To: "Kuniyuki Iwashima" <kuniyu@google.com>,
	<sashiko-reviews@lists.linux.dev>
Cc: <bpf@vger.kernel.org>
Subject: Re: [PATCH v1 bpf-next/net 5/5] selftest: bpf: Add test for hwtstamp proxy.
Date: Fri, 12 Jun 2026 09:04:28 -0700	[thread overview]
Message-ID: <DJ775MFSG561.2SI6FNLLV8NG5@gmail.com> (raw)
In-Reply-To: <CAAVpQUCRU1ie22PbegWgGnfyWw9V0wSTjgQpw=5Wwb2RZ=su+w@mail.gmail.com>

On Thu Jun 11, 2026 at 11:03 PM PDT, Kuniyuki Iwashima wrote:
> On Thu, Jun 11, 2026 at 5:31 PM <sashiko-bot@kernel.org> wrote:
>>
>> Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
>> - [High] Comparing a potentially negative return value to `sizeof()` causes failure handling to be skipped, erroneously dropping packets.
>> - [Medium] Incorrect struct cast for SO_TIMESTAMPING_NEW cmsg data causes test failures on 32-bit systems.
>> - [Medium] Typo in the test assertion prevents verification of TX timestamp keys.
>> - [Low] Multi-line comments violate the BPF subsystem comment style.
>> - [Low] The `buf_cmsg` array is not fully initialized before being passed to `sendmsg()`, passing uninitialized stack data to the kernel.
>> --
>>
>> commit e747f30190af013f6f5cc858f0dacb86e902e2d2
>> Author: Kuniyuki Iwashima <kuniyu@google.com>
>>
>> selftest: bpf: Add test for hwtstamp proxy.
>>
>> This selftest simulates the hardware timestamp proxy scenario using two
>> UDP sockets, simulating a userspace proxy via a GENEVE device.
>>
>> > diff --git a/tools/testing/selftests/bpf/prog_tests/proxy_hwtstamp.c b/tools/testing/selftests/bpf/prog_tests/proxy_hwtstamp.c
>> > new file mode 100644
>> > index 0000000000000..d0f90f22bea22
>> > --- /dev/null
>> > +++ b/tools/testing/selftests/bpf/prog_tests/proxy_hwtstamp.c
>> [ ... ]
>> > +char *ipv4_commands[] = {
>> > +     "ip link set dev lo up",
>> > +     "ip link add geneve0 type geneve local " APP_SRC_IPV4 " external",
>> > +     "ip addr add " APP_SRC_IPV4 "/24 dev geneve0",
>> > +     "ip link set dev geneve0 address aa:bb:cc:dd:ee:ff",
>> > +     "ip link set dev geneve0 up",
>> > +     "ip route add " APP_DST_IPV4 "/32 dev geneve0",
>> > +     /* We do not forward ARP to the wire in this test,
>> > +      * so a static neighbour entry is needed for APP_DST_IPV4.
>> > +      */
>>
>> [Severity: Low]
>> Does this multi-line comment format violate the BPF subsystem comment style?
>> It seems the subsystem guidelines prefer the opening /* on its own line for
>> multi-line comments.
>
> Gray zone, this is rather net one :)

bot is correct on this one :) BPF prefers normal kernel coding style.

  reply	other threads:[~2026-06-12 16:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12  0:17 [PATCH v1 bpf-next/net 0/5] bpf: Support RX/TX HW timestamp proxy Kuniyuki Iwashima
2026-06-12  0:17 ` [PATCH v1 bpf-next/net 1/5] ethtool: Introduce ETHTOOL_MSG_TSINFO_SET for virtual interfaces Kuniyuki Iwashima
2026-06-12  0:17 ` [PATCH v1 bpf-next/net 2/5] bpf: Rename bpf_kfunc_set_tcp_reqsk to bpf_kfunc_set_sched_cls Kuniyuki Iwashima
2026-06-12  0:17 ` [PATCH v1 bpf-next/net 3/5] bpf: Add bpf_skb_set_hwtstamp() Kuniyuki Iwashima
2026-06-12  0:33   ` sashiko-bot
2026-06-12  5:41     ` Kuniyuki Iwashima
2026-06-12  0:17 ` [PATCH v1 bpf-next/net 4/5] bpf: Add kfunc to proxy TX HW Timestamp Kuniyuki Iwashima
2026-06-12  0:33   ` sashiko-bot
2026-06-12  5:59     ` Kuniyuki Iwashima
2026-06-12  3:37   ` Alexei Starovoitov
2026-06-12  4:16     ` Kuniyuki Iwashima
2026-06-12  0:17 ` [PATCH v1 bpf-next/net 5/5] selftest: bpf: Add test for hwtstamp proxy Kuniyuki Iwashima
2026-06-12  0:31   ` sashiko-bot
2026-06-12  6:03     ` Kuniyuki Iwashima
2026-06-12 16:04       ` Alexei Starovoitov [this message]
2026-06-12 18:55         ` Kuniyuki Iwashima

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=DJ775MFSG561.2SI6FNLLV8NG5@gmail.com \
    --to=alexei.starovoitov@gmail.com \
    --cc=bpf@vger.kernel.org \
    --cc=kuniyu@google.com \
    --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.