[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpWAWLZ-wg3HBAxp35hZC=ysO65=2qPMCq-sw7PAdSkR3Q@mail.gmail.com>
Date: Thu, 21 Sep 2017 11:50:32 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Linux Kernel Network Developers <netdev@...r.kernel.org>
Cc: Cong Wang <xiyou.wangcong@...il.com>,
Chris Mi <chrism@...lanox.com>, Jiri Pirko <jiri@...lanox.com>
Subject: Re: [Patch net] net_sched: remove cls_flower idr on failure
On Thu, Sep 21, 2017 at 11:47 AM, Cong Wang <xiyou.wangcong@...il.com> wrote:
> On Wed, Sep 20, 2017 at 9:18 AM, Cong Wang <xiyou.wangcong@...il.com> wrote:
>> +errout_idr:
>> + if (fnew->handle)
>> + idr_remove_ext(&head->handle_idr, fnew->handle);
>
> Hmm, I should check fold instead of fnew->handle here.
> I will update this patch.
Never mind, it should be the same logic. If fold is non-NULL,
then fnew->handle == 0.
It can be applied as it is.
Powered by blists - more mailing lists