]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: skip actions that don't have options attribute when printing
authorVlad Buslov <vladbu@mellanox.com>
Fri, 23 Oct 2020 14:55:35 +0000 (17:55 +0300)
committerDavid Ahern <dsahern@gmail.com>
Sat, 31 Oct 2020 15:14:01 +0000 (09:14 -0600)
commita99ebeeef2c95f580f6fae67ce20ace7d22706bc
treea00a1695b9480860ec6448b4dd92e2ae60530de5
parenteb12cc9ae121994db8ad434b6a71407ab454c144
tc: skip actions that don't have options attribute when printing

Modify implementations that return error from action_until->print_aopt()
callback to silently skip actions that don't have their corresponding
TCA_ACT_OPTIONS attribute set (some actions already behave like this).
Print action kind before returning from action_until->print_aopt()
callbacks. This is necessary to support terse dump mode in following patch
in the series.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
20 files changed:
tc/m_bpf.c
tc/m_connmark.c
tc/m_csum.c
tc/m_ct.c
tc/m_ctinfo.c
tc/m_gact.c
tc/m_ife.c
tc/m_ipt.c
tc/m_mirred.c
tc/m_mpls.c
tc/m_nat.c
tc/m_pedit.c
tc/m_sample.c
tc/m_simple.c
tc/m_skbedit.c
tc/m_skbmod.c
tc/m_tunnel_key.c
tc/m_vlan.c
tc/m_xt.c
tc/m_xt_old.c