]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: limit, hashlimit: avoid duplicated inline
authorFlorian Westphal <fw@strlen.de>
Mon, 7 May 2012 10:51:43 +0000 (10:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:17:11 +0000 (09:17 -0700)
commitfb3c4ac3ad18c262fed504ab6f666edbff304e63
treed5ca250a004143de9b73f0f65954666e270f9973
parentde07e511bed085d75bb16e7fb499d4a16f0d4475
netfilter: limit, hashlimit: avoid duplicated inline

commit 7a909ac70f6b0823d9f23a43f19598d4b57ac901 upstream.

credit_cap can be set to credit, which avoids inlining user2credits
twice. Also, remove inline keyword and let compiler decide.

old:
    684     192       0     876     36c net/netfilter/xt_limit.o
   4927     344      32    5303    14b7 net/netfilter/xt_hashlimit.o
now:
    668     192       0     860     35c net/netfilter/xt_limit.o
   4793     344      32    5169    1431 net/netfilter/xt_hashlimit.o

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/xt_hashlimit.c
net/netfilter/xt_limit.c