netfilter: nfnetlink: avoid recurrent netns lookups in call_batch
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Dec 2015 11:08:26 +0000 (12:08 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 10 Dec 2015 12:49:24 +0000 (13:49 +0100)
commit633c9a840d0bf1cce690f3165bdacd8ab412949e
tree9536fc9847eb289d34bda3c6270e02830a561c29
parent639e077b43d9c54ffb1e1b54a2de54597ceae1d8
netfilter: nfnetlink: avoid recurrent netns lookups in call_batch

Pass the net pointer to the call_batch callback functions so we can skip
recurrent lookups.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
include/linux/netfilter/nfnetlink.h
net/netfilter/nf_tables_api.c
net/netfilter/nfnetlink.c