[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240601164814.3c34c807@kernel.org>
Date: Sat, 1 Jun 2024 16:48:14 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, Jaroslav Pulchart <jaroslav.pulchart@...ddata.com>,
dsahern@...nel.org
Subject: Re: [PATCH net] inet: bring NLM_DONE out to a separate recv() in
inet_dump_ifaddr()
On Sat, 1 Jun 2024 16:10:13 -0700 Stephen Hemminger wrote:
> Sorry, I disagree.
>
> You can't just fix the problem areas. The split was an ABI change, and there could
> be a problem in any dump. This the ABI version of the old argument
> If a tree falls in a forest and no one is around to hear it, does it make a sound?
>
> All dumps must behave the same. You are stuck with the legacy behavior.
The dump partitioning is up to the family. Multiple families
coalesce NLM_DONE from day 1. "All dumps must behave the same"
is saying we should convert all families to be poorly behaved.
Admittedly changing the most heavily used parts of rtnetlink is very
risky. And there's couple more corner cases which I'm afraid someone
will hit. I'm adding this helper to clearly annotate "legacy"
callbacks, so we don't regress again. At the same time nobody should
use this in new code or "just to be safe" (read: because they don't
understand netlink).
Powered by blists - more mailing lists