]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
tc: Optimize gact action lookup
authorPhil Sutter <phil@nwl.cc>
Fri, 12 Jan 2018 11:20:21 +0000 (12:20 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 17 Jan 2018 18:27:47 +0000 (10:27 -0800)
commit6f7df6b2a1fef1b8df249a2a84a0c6cb029007c5
tree8c9569cc17987d62d81c095bc9af24803797fb52
parent9bed02a5d576f2d3cb3c8b250d8938f4978343f3
tc: Optimize gact action lookup

When adding a filter with a gact action such as 'drop', tc first tries
to open a shared object with equivalent name (m_drop.so in this case)
before trying gact. Avoid this by matching the action name against those
handled by gact prior to calling get_action_kind().

Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: David Ahern <dsahern@gmail.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
tc/m_action.c
tc/tc_util.c
tc/tc_util.h