BPF List
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: ThisSeanZhang <thisseanzhang@gmail.com>
Cc: bpf@vger.kernel.org
Subject: Re: [RFC bpf-next v2 2/3] bpf: Add PPPoE decap support to bpf_skb_adjust_room
Date: Sat, 03 Oct 2026 19:47:11 +0000	[thread overview]
Message-ID: <20261003194712.154F91F0089B@smtp.kernel.org> (raw)
In-Reply-To: <20261003193347.1137527-3-thisseanzhang@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] bpf: multi-line comment violates subsystem style
--

commit c1a6f04f8833d9df42d737a66bf20c54f24fcd8b
Author: ThisSeanZhang <thisseanzhang@gmail.com>
Subject: bpf: Add PPPoE decap support to bpf_skb_adjust_room

This commit adds the BPF_F_ADJ_ROOM_DECAP_PPPOE flag to bpf_skb_adjust_room(),
enabling TC BPF programs to decapsulate PPPoE session packets. It removes
the PPPoE headers and restores plain IPv4 or IPv6 skb metadata for later
consumers.

> diff --git a/net/core/filter.c b/net/core/filter.c
> index 80ebf3cf2e783..c6f7ccee5c187 100644
> --- a/net/core/filter.c
> +++ b/net/core/filter.c

[ ... ]

> @@ -3920,6 +3960,23 @@ BPF_CALL_4(bpf_skb_adjust_room, struct sk_buff *, skb, s32, len_diff,
>  		    (flags & BPF_F_ADJ_ROOM_DECAP_IPXIP_MASK))
>  			return -EINVAL;
>  
> +		/* PPPoE decapsulation is mutually exclusive with the
> +		 * other decapsulation types.
> +		 */

[Severity: Low]
This isn't a bug, but does this multi-line comment follow the preferred
BPF subsystem style? 

The BPF subsystem conventions require multi-line comments to have the
opening /* on its own line. Could this be updated to match the standard
formatting?

/*
 * PPPoE decapsulation is mutually exclusive with the
 * other decapsulation types.
 */

> +		if ((flags & BPF_F_ADJ_ROOM_DECAP_PPPOE) &&
> +		    (flags & (BPF_F_ADJ_ROOM_DECAP_MASK &
> +			      ~BPF_F_ADJ_ROOM_DECAP_PPPOE)))
> +			return -EINVAL;
> +
> +		if (flags & BPF_F_ADJ_ROOM_DECAP_PPPOE) {

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261003193347.1137527-1-thisseanzhang@gmail.com?part=2

  reply	other threads:[~2026-10-03 19:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 19:33 [RFC bpf-next v2 0/3] bpf: Add PPPoE encap/decap support to bpf_skb_adjust_room ThisSeanZhang
2026-10-03 19:33 ` [RFC bpf-next v2 1/3] bpf: Add PPPoE encap " ThisSeanZhang
2026-10-03 19:33 ` [RFC bpf-next v2 2/3] bpf: Add PPPoE decap " ThisSeanZhang
2026-10-03 19:47   ` sashiko-bot [this message]
2026-10-03 19:33 ` [RFC bpf-next v2 3/3] selftests/bpf: Add a test for the PPPoE encap/decap adjust_room flags ThisSeanZhang
2026-10-03 20:11   ` 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=20261003194712.154F91F0089B@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=thisseanzhang@gmail.com \
    /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