[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190222.152709.1247023802313150164.davem@davemloft.net>
Date: Fri, 22 Feb 2019 15:27:09 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com, jiri@...nulli.us
Subject: Re: [Patch net-next] net_sched: initialize net pointer inside
tcf_exts_init()
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Wed, 20 Feb 2019 21:37:42 -0800
> For tcindex filter, it is too late to initialize the
> net pointer in tcf_exts_validate(), as tcf_exts_get_net()
> requires a non-NULL net pointer. We can just move its
> initialization into tcf_exts_init(), which just requires
> an additional parameter.
>
> This makes the code in tcindex_alloc_perfect_hash()
> prettier.
>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied, thanks Cong.
Powered by blists - more mailing lists