]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: refactor notification code for RTM_DELTFILTER
authorWANG Cong <xiyou.wangcong@gmail.com>
Sat, 5 Aug 2017 04:31:42 +0000 (21:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:12:17 +0000 (14:12 -0700)
commit61d338013a7bcd90971aa530454b851f89c9fc33
tree989986433ffd65cd0749e82b84e3366771de6cfc
parent40551e53ff050371d258d6c78bd315d481a559e3
net_sched: refactor notification code for RTM_DELTFILTER

It is confusing to use 'unsigned long fh' as both a handle
and a pointer, especially commit 9019ae16c54b
("net sched filters: fix notification of filter delete with proper handle").

This patch introduces tfilter_del_notify() so that we can
pass it as a pointer as before, and we don't need to check
RTM_DELTFILTER in tcf_fill_node() any more.

This prepares for the next patch.

Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c