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-05-14 19:23:27 -05:00
2008-09-09 07:19:20 +02:00
2008-07-08 23:00:25 -07:00
2007-10-10 16:54:51 -07:00
2008-07-21 10:10:58 -07:00
2008-07-22 14:33:45 -07:00
2008-09-22 20:09:13 -07:00
2008-09-22 22:14:36 -07:00
2008-09-12 16:30:20 -07:00
2008-07-14 22:42:19 -07:00
2008-01-28 15:11:17 -08:00
2008-08-14 15:33:21 -07:00
2007-04-26 15:50:17 -07:00
2008-07-26 20:53:40 -04:00
2007-10-10 16:55:55 -07:00
2008-01-31 19:27:33 -08:00
2008-02-12 17:53:34 -08:00
2007-10-10 16:53:56 -07:00
2008-09-24 16:18:00 -04:00
2008-01-28 14:55:14 -08:00
2007-06-08 13:33:09 -07:00
2008-07-19 22:35:47 -07:00
2007-04-25 22:27:12 -07:00
2007-10-10 16:52:50 -07:00
2007-07-10 23:02:12 -07:00
2008-01-28 14:55:58 -08:00
2008-08-04 23:04:08 -07:00
2008-01-31 19:27:02 -08:00
2008-07-05 19:01:28 -07:00
2008-08-05 01:19:50 -07:00
2008-07-05 21:26:57 -07:00
2008-01-28 15:11:10 -08:00
2008-06-03 16:36:54 -07:00
2008-07-18 04:04:22 -07:00
2007-04-28 11:01:01 -04:00
2008-07-25 10:53:26 -07:00
2008-09-30 14:07:23 -04:00
2008-07-22 14:21:58 -07:00
2007-01-26 01:04:55 -08:00
2008-06-16 17:14:11 -07:00
2008-04-03 14:28:30 -07:00
2008-08-28 02:53:51 -07:00
2008-04-13 23:40:51 -07:00
2008-03-28 16:35:27 -07:00
2008-06-16 17:14:11 -07:00
2008-06-16 17:14:11 -07:00
2008-09-08 13:17:27 -07:00
2008-06-11 21:00:38 -07:00
2006-12-22 11:12:07 -08:00
2008-03-04 13:48:30 -08:00
2008-08-14 15:33:21 -07:00
2008-06-11 21:00:38 -07:00
2008-02-05 02:54:16 -08:00
2008-09-09 09:53:08 +10:00
2008-07-26 20:53:10 -04:00
2008-07-25 02:54:40 -07:00
2008-06-11 21:00:38 -07:00
2008-05-21 14:16:36 -07:00
2008-10-01 02:48:31 -07:00
2007-04-25 22:25:31 -07:00
2008-06-16 18:50:49 -07:00
2007-10-10 16:49:07 -07:00
2008-02-29 11:46:17 -08:00
2008-03-31 21:02:47 -07:00
2008-03-31 21:02:47 -07:00
2008-03-28 16:28:36 -07:00
2008-09-24 16:18:03 -04:00
2008-04-12 13:43:22 +09:00
2008-05-19 16:25:42 -07:00
2008-07-16 20:50:49 -07:00
2008-07-26 20:53:08 -04:00
2008-01-28 14:53:38 -08:00
2008-04-28 06:18:03 -04:00
2008-09-02 17:30:27 -07:00
2007-02-12 09:48:44 -08:00
2008-03-27 16:53:37 -07:00
2008-09-23 01:05:56 -07:00
2008-03-24 15:33:00 -07:00
2008-03-22 16:56:51 -07:00
2008-01-28 14:54:29 -08:00
2007-04-25 22:27:55 -07:00
2008-08-06 23:50:04 -07:00
2008-06-17 17:08:32 -07:00
2008-07-27 04:40:51 -07:00
2008-04-16 00:46:52 -07:00
2008-09-22 22:15:30 -07:00
2007-10-19 11:53:40 -07:00
2008-06-11 21:00:38 -07:00
2008-08-28 02:53:51 -07:00
2008-07-05 21:25:39 -07:00
2008-07-23 23:00:31 +02:00
2008-09-23 00:50:13 -07:00
2008-06-14 17:04:49 -07:00
2008-07-18 04:03:45 -07:00
2008-03-06 16:22:02 -08:00
2008-06-16 18:32:46 -07:00
2008-09-24 16:18:00 -04:00
2007-02-08 13:34:36 -08:00
2007-04-25 22:24:32 -07:00
2008-09-22 19:48:19 -07:00