netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/3] netfilter: reduce netns create/delete cost
@ 2017-11-30 23:21 Florian Westphal
  2017-11-30 23:21 ` [PATCH nf-next 1/3] netfilter: core: make nf_unregister_net_hooks simple wrapper again Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Westphal @ 2017-11-30 23:21 UTC (permalink / raw)
  To: netfilter-devel; +Cc: gscrivan

This patch series removes all synchronize_net() calls from netfilter core
to speed up net namespace create/delete rate.

Freeing of hooks is moved to call_rcu at the cost of additional 24 bytes
at the end of each rule blob.

 include/linux/netfilter.h        |   19 +++++--
 include/net/netfilter/nf_queue.h |    2 
 net/netfilter/core.c             |   99 ++++++++++++---------------------------
 net/netfilter/nf_internals.h     |    2 
 net/netfilter/nf_queue.c         |    7 --
 net/netfilter/nfnetlink_queue.c  |    9 ---
 6 files changed, 53 insertions(+), 85 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-06  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-30 23:21 [PATCH nf-next 0/3] netfilter: reduce netns create/delete cost Florian Westphal
2017-11-30 23:21 ` [PATCH nf-next 1/3] netfilter: core: make nf_unregister_net_hooks simple wrapper again Florian Westphal
2017-11-30 23:21 ` [PATCH nf-next 2/3] netfilter: core: remove synchronize_net call if nfqueue is used Florian Westphal
2017-11-30 23:21 ` [PATCH nf-next 3/3] netfilter: core: free hooks with call_rcu Florian Westphal
2017-12-06  8:19 ` [PATCH nf-next 0/3] netfilter: reduce netns create/delete cost Pablo Neira Ayuso

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).