]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: only create filter chains for new filters/actions
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 23 May 2017 16:42:37 +0000 (09:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 16:15:05 +0000 (12:15 -0400)
commit36562bb6d3112a35b16c176cd20a27c04b4d5c54
tree50c730e41e49111e669a94750700c3acddb7b1ef
parent82083861b31a5216df325cfdc1c6b4481aeccc3a
net_sched: only create filter chains for new filters/actions

tcf_chain_get() always creates a new filter chain if not found
in existing ones. This is totally unnecessary when we get or
delete filters, new chain should be only created for new filters
(or new actions).

Fixes: 271fce5a6e27 ("net: sched: introduce multichain support for filters")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/act_api.c
net/sched/cls_api.c