From: Thomas Monjalon <thomas@monjalon.net>
To: "Morten Brørup" <mb@smartsharesystems.com>
Cc: dev@dpdk.org, stable@dpdk.org, Maxime Leroy <maxime@leroys.fr>,
Stephen Hemminger <stephen@networkplumber.org>
Subject: Re: [PATCH v2] net: revert add IPv6 traffic class and flow label fields
Date: Mon, 12 Oct 2026 23:24:08 +0200 [thread overview]
Message-ID: <0fcPPI6SRfq0cntP9byJUA@monjalon.net> (raw)
In-Reply-To: <20260929073601.2971197-1-mb@smartsharesystems.com>
29/09/2026 09:36, Morten Brørup:
> The IPv6 header bitfields "version", "ds", "ecn", and "flow_label"
> are not organized correctly on little endian architectures.
> On little endian, a 32-bit bitfield is allocated from the least
> significant bit of the host order word, but "vtc_flow" is stored in
> network order. All four fields therefore read and write the wrong
> bits. For example, setting "version" to 6 writes 0x60 into the last
> byte of the word.
>
> "ds" and "flow_label" are not contiguous in memory on little endian,
> so no reordering of bitfields can express them.
>
> Reverted the patch introducing these bitfields.
>
> PS: There is a GCC attribute to fix this, but nothing similar is
> offered by Clang or MSVC:
> __attribute__((scalar_storage_order("big-endian")))
>
> Bugzilla ID: 1679
> Fixes: cba27998dc81 ("net: add IPv6 traffic class and flow label fields")
> Cc: stable@dpdk.org
>
> Reported-by: Maxime Leroy <maxime@leroys.fr>
> Signed-off-by: Morten Brørup <mb@smartsharesystems.com>
> Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Applied, thanks.
prev parent reply other threads:[~2026-10-12 21:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 16:36 [PATCH] net: revert add IPv6 traffic class and flow label fields Morten Brørup
2026-09-22 18:14 ` Stephen Hemminger
2026-09-28 14:15 ` Thomas Monjalon
2026-09-28 14:20 ` Morten Brørup
2026-09-29 7:36 ` [PATCH v2] " Morten Brørup
2026-10-12 21:24 ` Thomas Monjalon [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=0fcPPI6SRfq0cntP9byJUA@monjalon.net \
--to=thomas@monjalon.net \
--cc=dev@dpdk.org \
--cc=maxime@leroys.fr \
--cc=mb@smartsharesystems.com \
--cc=stable@dpdk.org \
--cc=stephen@networkplumber.org \
/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