[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpV8Z_-8Tj0TJTi5QOhjtdngx0JtgArhGiCx_Se2v9CRGA@mail.gmail.com>
Date: Tue, 16 Jan 2018 16:03:15 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Jiri Pirko <jiri@...nulli.us>
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
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.
Powered by blists - more mailing lists