Vlad Buslov c431f89b18 net: sched: split tc_ctl_tfilter into three handlers
tc_ctl_tfilter handles three netlink message types: RTM_NEWTFILTER,
RTM_DELTFILTER, RTM_GETTFILTER. However, implementation of this function
involves a lot of branching on specific message type because most of the
code is message-specific. This significantly complicates adding new
functionality and doesn't provide much benefit of code reuse.

Split tc_ctl_tfilter to three standalone functions that handle filter new,
delete and get requests.

The only truly protocol independent part of tc_ctl_tfilter is code that
looks up queue, class, and block. Refactor this code to standalone
tcf_block_find function that is used by all three new handlers.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-01 11:13:50 -04:00
..
2018-05-04 12:52:47 -04:00
2018-05-29 15:20:21 -04:00
2018-03-27 13:18:09 -04:00
2018-05-24 14:22:59 -07:00
2018-04-23 10:21:24 -04:00
2018-05-31 14:13:43 -04:00
2018-03-27 13:18:09 -04:00
2018-05-08 00:11:40 -04:00
2018-03-27 13:18:09 -04:00
2018-05-04 12:54:38 -04:00
2018-03-27 13:18:09 -04:00
2018-05-24 14:12:05 -07:00
2018-05-24 14:12:05 -07:00
2018-05-22 10:25:06 +02:00
2018-05-28 22:59:54 -04:00