[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpU41g_aSd7wbRk5r+hbVRdoDYnLWANjOJtZYgf4qfx0_w@mail.gmail.com>
Date: Tue, 24 Jul 2018 15:30:41 -0700
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>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Simon Horman <simon.horman@...ronome.com>,
john.hurley@...ronome.com, David Ahern <dsahern@...il.com>,
mlxsw@...lanox.com, sridhar.samudrala@...el.com
Subject: Re: [patch net-next v4 03/12] net: sched: introduce chain object to uapi
On Mon, Jul 23, 2018 at 12:25 AM Jiri Pirko <jiri@...nulli.us> wrote:
> + switch (n->nlmsg_type) {
> + case RTM_NEWCHAIN:
> + /* In case the chain was successfully added, take a reference
> + * to the chain. This ensures that an empty chain
> + * does not disappear at the end of this function.
> + */
> + tcf_chain_hold(chain);
> + chain->explicitly_created = true;
> + tc_chain_notify(chain, NULL, 0, NLM_F_CREATE | NLM_F_EXCL,
> + RTM_NEWCHAIN, false);
> + break;
> + case RTM_DELCHAIN:
> + /* Flush the chain first as the user requested chain removal. */
> + tcf_chain_flush(chain);
> + /* In case the chain was successfully deleted, put a reference
> + * to the chain previously taken during addition.
> + */
> + tcf_chain_put_explicitly_created(chain);
> + break;
I don't see you send notification to user-space when deleting a chain,
am I missing anything?
Powered by blists - more mailing lists