linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] netfilter: code refine for using new interface 'list_for_each_entry_continue_rcu'
@ 2012-08-23  5:59 Michael Wang
  0 siblings, 0 replies; only message in thread
From: Michael Wang @ 2012-08-23  5:59 UTC (permalink / raw)
  To: LKML, netdev, coreteam, netfilter, netfilter-devel
  Cc: David Miller, kaber, pablo

From: Michael Wang <wangyun@linux.vnet.ibm.com>

Since 'list_for_each_continue_rcu' has been replaced with the new interface
'list_for_each_entry_continue_rcu' by commit 6705e86, we can no longer saving
code by passing 'list_head' to nf_iterate() and nf_queue() any more.

This patch set will pass 'nf_hook_ops' instead of 'list_head' to nf_iterate()
and nf_queue() as the parameter and saving some code.

Tested:
	add rule to iptables and check result by ping.
	nfqnl_test which is a test utility of libnetfilter_queue.

Signed-off-by: Michael Wang <wangyun@linux.vnet.ibm.com>
---
 b/net/netfilter/core.c         |   24 ++++++++++--------------
 b/net/netfilter/nf_internals.h |    2 +-
 b/net/netfilter/nf_queue.c     |    6 +++---
 net/netfilter/core.c           |    4 ++--
 net/netfilter/nf_internals.h   |    2 +-
 net/netfilter/nf_queue.c       |    8 ++++----
 6 files changed, 21 insertions(+), 25 deletions(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-23  6:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23  5:59 [PATCH 0/2] netfilter: code refine for using new interface 'list_for_each_entry_continue_rcu' Michael Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).