On Sat, Jun 30, 2018 at 3:13 AM Jiri Pirko <j...@resnulli.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.