[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180117085950.GA2114@nanopsycho>
Date: Wed, 17 Jan 2018 09:59:50 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>, mlxsw@...lanox.com,
andrew@...n.ch,
Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
Florian Fainelli <f.fainelli@...il.com>,
michael.chan@...adcom.com, ganeshgr@...lsio.com,
Saeed Mahameed <saeedm@...lanox.com>, matanb@...lanox.com,
leonro@...lanox.com, Ido Schimmel <idosch@...lanox.com>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Simon Horman <simon.horman@...ronome.com>,
Pieter Jansen van Vuuren
<pieter.jansenvanvuuren@...ronome.com>, john.hurley@...ronome.com,
Alexander Duyck <alexander.h.duyck@...el.com>,
Or Gerlitz <ogerlitz@...lanox.com>,
John Fastabend <john.fastabend@...il.com>,
Daniel Borkmann <daniel@...earbox.net>,
David Ahern <dsahern@...il.com>
Subject: Re: [patch net-next v10 02/13] net: sched: introduce shared filter
blocks infrastructure
Wed, Jan 17, 2018 at 01:03:15AM CET, xiyou.wangcong@...il.com wrote:
>On Tue, Jan 16, 2018 at 7:33 AM, Jiri Pirko <jiri@...nulli.us> wrote:
>> static int __init tc_filter_init(void)
>> {
>> + int err;
>> +
>> tc_filter_wq = alloc_ordered_workqueue("tc_filter_workqueue", 0);
>> if (!tc_filter_wq)
>> return -ENOMEM;
>>
>> + err = register_pernet_subsys(&tcf_net_ops);
>> + if (err)
>> + return err;
>
>Need to destroy the above workqueue on error.
Will fix. Thanks.
Powered by blists - more mailing lists