]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()
authorMichael Wang <wangyun@linux.vnet.ibm.com>
Wed, 22 Aug 2012 19:59:57 +0000 (19:59 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 3 Sep 2012 11:52:44 +0000 (13:52 +0200)
commite3033eb41a775f41873b40a220dade6a9ca5bab0
tree62c21cdac0ffeee0afe68b012350bb47e289b4d1
parenta9764da99650323b6a04f3021edfffe1f0c9f630
netfilter: pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()

Since 'list_for_each_continue_rcu' has already been replaced by
'list_for_each_entry_continue_rcu', pass 'list_head' to nf_iterate() as a
parameter can not benefit us any more.

This patch will replace 'list_head' with 'nf_hook_ops' as the parameter of
nf_iterate() to save code.

Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c
net/netfilter/nf_internals.h
net/netfilter/nf_queue.c