diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-12-09 12:08:26 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-12-10 13:49:24 +0100 |
commit | 633c9a840d0bf1cce690f3165bdacd8ab412949e (patch) | |
tree | 9536fc9847eb289d34bda3c6270e02830a561c29 /net/netfilter/nfnetlink.c | |
parent | 639e077b43d9c54ffb1e1b54a2de54597ceae1d8 (diff) | |
download | op-kernel-dev-633c9a840d0bf1cce690f3165bdacd8ab412949e.zip op-kernel-dev-633c9a840d0bf1cce690f3165bdacd8ab412949e.tar.gz |
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>
Diffstat (limited to 'net/netfilter/nfnetlink.c')
-rw-r--r-- | net/netfilter/nfnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink.c b/net/netfilter/nfnetlink.c index 46453ab..445590f 100644 --- a/net/netfilter/nfnetlink.c +++ b/net/netfilter/nfnetlink.c @@ -381,7 +381,7 @@ replay: goto ack; if (nc->call_batch) { - err = nc->call_batch(net->nfnl, skb, nlh, + err = nc->call_batch(net, net->nfnl, skb, nlh, (const struct nlattr **)cda); } |