From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Qingfang Deng <qingfang.deng@linux.dev>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
Eric Woudstra <ericwouds@gmail.com>,
Asim Viladi Oglu Manizada <manizada@pm.me>,
Felix Fietkau <nbd@nbd.name>,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next] pppoe: make the session ID byte order explicit in procfs
Date: Thu, 3 Dec 2026 18:03:34 +0100 [thread overview]
Message-ID: <401a65e5-d994-4869-9b70-0bed9627e289@6wind.com> (raw)
In-Reply-To: <20261201040014.10868-1-qingfang.deng@linux.dev>
Le 01/12/2026 à 05:00, Qingfang Deng a écrit :> /proc/net/pppoe prints the
network-order session ID as a native-endian
> integer. A session ID of 0x1234 therefore appears as 00003412 on
> little-endian hosts and 00001234 on big-endian hosts.
>
> Explicitly cast the ID to u16 to document this ABI, so a static analysis
> tool won't trip on it. Converting it to host byte order would change
> what little-endian userspace reads.
Which tool, and what does it report? If sparse warns on the current code, please
quote the warning in the commit log. Otherwise this looks like a pure cleanup.
Nit: the cast does not make the byte order explicit, it documents that no
conversion is done. Something like "pppoe: document the raw session ID in
procfs" may be more accurate.
Regards,
Nicolas
prev parent reply other threads:[~2026-12-03 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 4:00 [PATCH net-next] pppoe: make the session ID byte order explicit in procfs Qingfang Deng
2026-12-03 17:03 ` Nicolas Dichtel [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=401a65e5-d994-4869-9b70-0bed9627e289@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=ericwouds@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=manizada@pm.me \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=qingfang.deng@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