On Fri, Jun 29, 2018 at 10:06 AM Samudrala, Sridhar <sridhar.samudr...@intel.com> wrote: > > So instead of introducing 'chaintemplate' object in the kernel, can't we add > 'chain' > object in the kernel that takes the 'template' as an attribute?
This is exactly what I mean above. Making the chain a standalone object in kernel would benefit: 1. Align with 'tc chain' in iproute2, add/del an object is natural 2. Template is an attribute of this object when creating it: # tc chain add template .... # tc chain add ... # non-template chain 3. Easier for sharing by qdiscs: # tc chain add X block Y ... # tc filter add ... chain X block Y ... # tc qdisc add dev eth0 block Y ... The current 'ingress_block 22 ingress' syntax is ugly.