[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170408184008.GB1900@nanopsycho>
Date: Sat, 8 Apr 2017 20:40:08 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Johannes Berg <johannes@...solutions.net>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
pablo@...filter.org, Jamal Hadi Salim <jhs@...atatu.com>,
Jiri Benc <jbenc@...hat.com>,
David Ahern <dsa@...ulusnetworks.com>
Subject: Re: [PATCH 1/5] netlink: extended ACK reporting
Sat, Apr 08, 2017 at 08:37:01PM CEST, johannes@...solutions.net wrote:
>On Sat, 2017-04-08 at 20:34 +0200, Jiri Pirko wrote:
>> nla_total_size(sizeof(u32));
>> > + if (extack &&
>> > + (extack->missing_attr || extack-
>> > >bad_attr))
>>
>> Attr could be 0, right? I know that on the most of the places 0 is
>> UNSPEC, but I'm pretty sure not everywhere.
>
>Yeah, I guess we can't show a missing attribute of 0 now - bad_attr is
>a pointer so no problem there.
>
>I think I'll leave it like this - if anyone really wants to say
>"attribute 0 is missing" then we can add a flag later... The UAPI does
>take this into account by not including the attribute at all if the
>data is invalid, so 0 in the userspace API can be done
It a known issue, should be fixed right now. We are in no hurry. This
waited +15 years to be done, no harm in couple more days.
Also, could you please attach a patch to iproute2 for example which
would make use of this. I just want to make sure it clicks.
Thanks!
Powered by blists - more mailing lists