Ilpo Järvinen
93c8b90f01
ipv6: almost identical frag hashing funcs combined
$ diff-funcs ip6qhashfn reassembly.c netfilter/nf_conntrack_reasm.c
--- reassembly.c:ip6qhashfn()
+++ netfilter/nf_conntrack_reasm.c:ip6qhashfn()
@@ -1,5 +1,5 @@
-static unsigned int ip6qhashfn(__be32 id, struct in6_addr *saddr,
- struct in6_addr *daddr)
+static unsigned int ip6qhashfn(__be32 id, const struct in6_addr *saddr,
+ const struct in6_addr *daddr)
{
u32 a, b, c;
@@ -9,7 +9,7 @@
a += JHASH_GOLDEN_RATIO;
b += JHASH_GOLDEN_RATIO;
- c += ip6_frags.rnd;
+ c += nf_frags.rnd;
__jhash_mix(a, b, c);
a += (__force u32)saddr->s6_addr32[3];
And codiff xx.o.old xx.o.new:
net/ipv6/netfilter/nf_conntrack_reasm.c:
ip6qhashfn | -512
nf_hashfn | +6
nf_ct_frag6_gather | +36
3 functions changed, 42 bytes added, 512 bytes removed, diff: -470
net/ipv6/reassembly.c:
ip6qhashfn | -512
ip6_hashfn | +7
ipv6_frag_rcv | +89
3 functions changed, 96 bytes added, 512 bytes removed, diff: -416
net/ipv6/reassembly.c:
inet6_hash_frag | +510
1 function changed, 510 bytes added, diff: +510
Total: -376
Compile tested.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-01 02:48:31 -07:00
..
2008-07-24 10:47:27 -07:00
2008-07-25 10:53:27 -07:00
2008-09-20 22:20:49 -07:00
2008-07-25 21:43:18 -07:00
2008-09-22 19:24:45 -07:00
2008-08-05 18:46:57 -07:00
2008-09-09 07:19:20 +02:00
2008-09-08 16:59:05 -07:00
2008-07-19 22:34:43 -07:00
2008-10-01 02:33:12 -07:00
2008-09-09 13:27:22 +02:00
2008-07-19 22:34:43 -07:00
2008-07-19 22:34:43 -07:00
2008-09-20 22:20:49 -07:00
2008-08-22 16:29:49 -04:00
2008-09-23 02:51:41 -07:00
2008-10-01 02:48:31 -07:00
2008-07-19 22:34:43 -07:00
2008-07-20 17:43:29 -07:00
2008-07-21 17:19:50 +02:00
2008-07-25 21:43:18 -07:00
2008-07-19 22:34:43 -07:00
2008-09-30 14:07:25 -04:00
2008-09-22 19:02:36 -07:00
2008-07-19 22:34:43 -07:00
2008-07-25 21:43:18 -07:00
2008-07-22 14:16:42 -07:00
2008-07-25 21:43:18 -07:00
2008-09-30 02:51:18 -07:00
2008-09-15 16:48:25 -04:00
2008-07-22 14:16:42 -07:00
2008-08-13 02:40:48 -07:00
2008-09-22 22:16:23 -07:00
2008-09-21 21:28:51 -07:00
2008-09-20 22:20:49 -07:00
2008-09-02 23:38:32 -07:00
2008-07-26 20:23:44 -07:00
2008-07-23 23:00:36 +02:00
2008-09-24 16:18:04 -04:00
2008-07-19 22:34:43 -07:00
2008-09-22 19:48:19 -07:00
2008-07-24 10:47:27 -07:00
2008-09-22 20:03:00 -07:00
2008-09-22 20:03:00 -07:00
2008-07-26 12:00:07 -07:00
2008-07-27 09:45:34 -07:00