[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170527095407.GA1831@nanopsycho>
Date: Sat, 27 May 2017 11:54:07 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
mlxsw@...lanox.com
Subject: Re: [patch net-next] net/sched: let chain_get to figure out the
return value
Fri, May 26, 2017 at 04:59:12PM CEST, davem@...emloft.net wrote:
>From: Jiri Pirko <jiri@...nulli.us>
>Date: Fri, 26 May 2017 09:21:29 +0200
>
>> From: Jiri Pirko <jiri@...lanox.com>
>>
>> Alhough I believe that this create/nocreate dance is completelly
>> pointless, at least make it a bit nicer and easier to read.
>> Push the decision on what error value is returned to chain_get function
>> and use ERR macros.
>>
>> Signed-off-by: Jiri Pirko <jiri@...lanox.com>
>
>No, this is quite worse.
>
>You're leaving pointer error values in structures. That's extremely
>error prone.
Yet used everywhere in kernel.
>
>And as stated in the other thread, I don't think Cong's logic is strange
>or hard to understand at all.
That is why tc code looks how it does :/
But perhaps I'm slow and everything is crystal-clear to everyone else.
Powered by blists - more mailing lists