From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org, sashiko-reviews@lists.linux.dev,
"Linus Lüssing" <linus.luessing@c0d3.blue>
Cc: marek.lindner@mailbox.org, sw@simonwunderlich.de, antonio@mandelbit.com
Subject: Re: [batadv,v14 5/5] batman-adv: avoid superfluous DAT DHT_PUT additions to local DAT
Date: Wed, 07 Oct 2026 09:24:23 +0200 [thread overview]
Message-ID: <5152412.GXAFRqVoOG@sven-desktop> (raw)
In-Reply-To: <asWbc64vRQgTKt9E@sellars>
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]
On Wednesday, 7 October 2026 03:08:03 CEST Linus Lüssing wrote:
> > - [Medium] batadv: UAPI source compatibility breakage via reserved field rename
>
> I would have thought that for a field called "reserved" it would
> be clear that it'd be subject to change in the future.
To play the devils advocate: But programs would still fail when they
manually initialize this field to 0.
> Or should I introduce a "struct batadv_unicast_4addr_v2_packet"?
Usually, you have a couple of bytes marked as a reserved array. And then they
reduce the number of bytes by X and add a new field. You can discuss if this
is correct or not (because then suddenly the new field would no longer be
initialized).
But for example, in commit c07d3aede2b2 ("fscrypt: add support for hardware-
wrapped keys") or commit 38a435800945 ("habanalabs: expose device security
status using info ioctl") or 91233ad71186 ("vhost: support ASID in IOTLB
API"), exactly your approach was taken.
You could in theory (to make it compile in all situations), also use an
anonymous union around flags and reserved to ensure the byte can be accessed
with both names.
To also support your point, please check
https://docs.kernel.org/dev-tools/checkuapi.html - which also considers
"reserved" as ok:
95 # Common padding field names which can be expanded into
96 # without worrying about users.
Regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-10-07 7:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 18:50 [batadv,v14 0/5] batman-adv: increase DAT DHT timeout Linus Lüssing
2026-10-06 18:50 ` [batadv,v14 1/5] batman-adv: move local ARP reply code to subfunctions Linus Lüssing
2026-10-06 18:50 ` [batadv,v14 2/5] batman-adv: split DAT cache into DAT cache and DAT DHT Linus Lüssing
2026-10-06 18:50 ` [batadv,v14 3/5] batman-adv: increase DAT DHT timeout Linus Lüssing
2026-10-06 18:50 ` [batadv,v14 4/5] batman-adv: avoid superfluous DAT DHT_PUT if self-candidate Linus Lüssing
2026-10-06 18:50 ` [batadv,v14 5/5] batman-adv: avoid superfluous DAT DHT_PUT additions to local DAT Linus Lüssing
2026-10-07 1:08 ` Linus Lüssing
2026-10-07 7:24 ` Sven Eckelmann [this message]
2026-10-07 12:15 ` Linus Lüssing
2026-10-07 12:38 ` Andrew Lunn
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=5152412.GXAFRqVoOG@sven-desktop \
--to=sven@narfation.org \
--cc=antonio@mandelbit.com \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=linus.luessing@c0d3.blue \
--cc=marek.lindner@mailbox.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sw@simonwunderlich.de \
/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