]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tc: implement support for action flags
authorVlad Buslov <vladbu@mellanox.com>
Wed, 30 Oct 2019 14:20:40 +0000 (16:20 +0200)
committerDavid Ahern <dsahern@gmail.com>
Sat, 2 Nov 2019 14:44:23 +0000 (07:44 -0700)
commitfb2e033add073893dea71bb483353790fe8c5354
treebbea1ea0b88a45f82db0aaf8d0c2271de7d935b8
parent17a948c80af57da2fa86a8e34153f755f86e9c9c
tc: implement support for action flags

Implement setting and printing of action flags with single available flag
value "no_percpu" that translates to kernel UAPI TCA_ACT_FLAGS value
TCA_ACT_FLAGS_NO_PERCPU_STATS. Update man page with information regarding
usage of action flags.

Example usage:

 # tc actions add action gact drop no_percpu
 # sudo tc actions list action gact
 total acts 1

        action order 0: gact action drop
         random type none pass val 0
         index 1 ref 1 bind 0
        no_percpu

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
man/man8/tc-actions.8
tc/m_action.c