[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAM_iQpW6OFGb3b7gVmQuBkr1sS96KPnWj2Z1G6gieS2v9J5RLw@mail.gmail.com>
Date: Mon, 2 Jul 2018 12:33:33 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: sridhar.samudrala@...el.com, David Ahern <dsahern@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Simon Horman <simon.horman@...ronome.com>,
john.hurley@...ronome.com, mlxsw@...lanox.com
Subject: Re: [patch net-next v2 0/9] net: sched: introduce chain templates
support with offloading to mlxsw
On Sat, Jun 30, 2018 at 3:13 AM Jiri Pirko <jiri@...nulli.us> wrote:
> Okay. So that would allow either create a chain or "chain with
> template". Once that is done, there would be no means to manipulate the
> template. One can only remove the chain.
>
> What about refounting? I think it would make sense that this implicit
> chain addition would take one reference. That means if later on the last
> filter is removed, the chain would stay there until user removes it by
> hand.
Yeah, it is very similar to tc actions. So you can take a look
at how tc actions are refcnt'ed.
Powered by blists - more mailing lists