[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <241a1402-6cb5-494e-9830-c74767af72c4@intel.com>
Date: Tue, 8 Apr 2025 21:53:27 -0700
From: Jacob Keller <jacob.e.keller@...el.com>
To: Jakub Kicinski <kuba@...nel.org>, <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<andrew+netdev@...n.ch>, <horms@...nel.org>, <donald.hunter@...il.com>,
<yuyanghuang@...gle.com>, <sdf@...ichev.me>, <gnault@...hat.com>,
<nicolas.dichtel@...nd.com>, <petrm@...dia.com>
Subject: Re: [PATCH net-next 03/13] netlink: specs: rt-addr: remove the fixed
members from attrs
On 4/8/2025 5:03 PM, Jakub Kicinski wrote:
> The purpose of the attribute list is to list the attributes
> which will be included in a given message to shrink the objects
> for families with huge attr spaces. Fixed structs are always
> present in their entirety so there's no point in listing
> their members. Current C codegen doesn't expect them and
> tries to look up the names in the attribute space.
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
> ---
> Documentation/netlink/specs/rt-addr.yaml | 20 +++-----------------
> 1 file changed, 3 insertions(+), 17 deletions(-)
>
> diff --git a/Documentation/netlink/specs/rt-addr.yaml b/Documentation/netlink/specs/rt-addr.yaml
> index df6b23f06a22..0488ce87506c 100644
> --- a/Documentation/netlink/specs/rt-addr.yaml
> +++ b/Documentation/netlink/specs/rt-addr.yaml
> @@ -133,11 +133,6 @@ protonum: 0
> request:
> value: 20
> attributes: &ifaddr-all
> - - ifa-family
> - - ifa-flags
> - - ifa-prefixlen
> - - ifa-scope
> - - ifa-index
>From the wording of the commit message, I interpreted it that if the
attribute list contains a struct, then its members are implicit and
don't have to be listed..?
I guess I'm missing something here since It doesn't seem like that is
the case.
Does the commit mean that structs are always available regardless of
whats listed in the attributes?
Powered by blists - more mailing lists