lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 30 Jun 2018 12:12:18 +0200
From:   Jiri Pirko <>
To:     Cong Wang <>
Cc:, David Ahern <>,
        Jamal Hadi Salim <>,
        Linux Kernel Network Developers <>,
        David Miller <>,
        Jakub Kicinski <>,
        Simon Horman <>,,
Subject: Re: [patch net-next v2 0/9] net: sched: introduce chain templates
 support with offloading to mlxsw

Sat, Jun 30, 2018 at 12:18:02AM CEST, wrote:
>On Fri, Jun 29, 2018 at 10:06 AM Samudrala, Sridhar
><> 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

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

Okay. Sounds good to me. Will do.


>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.

Powered by blists - more mailing lists