Eric Dumazet
efe4208f47
ipv6: make lookups simpler and faster
...
TCP listener refactoring, part 4 :
To speed up inet lookups, we moved IPv4 addresses from inet to struct
sock_common
Now is time to do the same for IPv6, because it permits us to have fast
lookups for all kind of sockets, including upcoming SYN_RECV.
Getting IPv6 addresses in TCP lookups currently requires two extra cache
lines, plus a dereference (and memory stall).
inet6_sk(sk) does the dereference of inet_sk(__sk)->pinet6
This patch is way bigger than its IPv4 counter part, because for IPv4,
we could add aliases (inet_daddr, inet_rcv_saddr), while on IPv6,
it's not doable easily.
inet6_sk(sk)->daddr becomes sk->sk_v6_daddr
inet6_sk(sk)->rcv_saddr becomes sk->sk_v6_rcv_saddr
And timewait socket also have tw->tw_v6_daddr & tw->tw_v6_rcv_saddr
at the same offset.
We get rid of INET6_TW_MATCH() as INET6_MATCH() is now the generic
macro.
Signed-off-by: Eric Dumazet <edumazet@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2013-10-09 00:01:25 -04:00
..
2013-09-30 21:42:58 +02:00
2013-10-01 12:39:35 -04:00
2013-07-31 16:37:38 +02:00
2013-09-05 14:38:03 -04:00
2013-08-28 00:27:54 +02:00
2013-01-23 12:55:29 +01:00
2013-04-18 20:27:55 +02:00
2011-01-18 18:12:24 +01:00
2013-08-28 00:27:54 +02:00
2013-04-18 20:27:55 +02:00
2013-07-15 11:14:51 +02:00
2012-06-16 15:08:49 +02:00
2013-05-27 13:32:43 +02:00
2011-04-04 15:21:02 +02:00
2013-04-18 20:27:55 +02:00
2013-04-18 20:27:55 +02:00
2013-04-18 20:27:55 +02:00
2013-07-31 16:39:18 +02:00
2011-01-18 18:12:24 +01:00
2013-08-28 00:28:19 +02:00
2013-04-18 20:27:55 +02:00
2013-04-05 20:12:54 +02:00
2012-07-04 19:37:22 +02:00
2013-04-18 20:27:55 +02:00
2013-04-18 20:27:55 +02:00
2013-08-28 00:27:54 +02:00
2013-04-18 20:27:55 +02:00
2013-04-05 20:12:54 +02:00
2013-08-09 12:03:33 +02:00
2013-02-19 02:48:05 +01:00
2013-08-28 00:27:54 +02:00
2013-10-01 12:47:09 +02:00
2013-01-18 00:28:18 +01:00
2013-06-13 02:36:09 -07:00
2013-04-18 20:27:55 +02:00
2013-01-23 12:56:02 +01:00
2013-01-23 12:55:39 +01:00
2012-09-03 13:52:54 +02:00
2013-06-13 02:36:09 -07:00
2013-04-18 20:27:55 +02:00
2013-08-28 00:26:48 +02:00
2013-02-19 02:48:05 +01:00
2013-08-28 00:26:48 +02:00
2013-02-19 02:48:05 +01:00
2012-08-30 03:00:14 +02:00
2012-08-30 03:00:14 +02:00
2013-07-27 20:07:15 -07:00
2012-08-30 03:00:14 +02:00
2012-08-30 03:00:14 +02:00
2012-08-30 03:00:14 +02:00
2012-08-30 03:00:14 +02:00
2013-10-01 12:47:09 +02:00
2013-02-19 02:48:05 +01:00
2013-04-29 20:09:05 +02:00
2013-09-30 12:44:38 +02:00
2013-06-05 12:36:36 +02:00
2013-06-20 11:20:13 +02:00
2013-10-01 13:17:39 +02:00
2013-10-01 12:46:56 +02:00
2013-10-01 12:20:31 +02:00
2013-08-28 00:26:48 +02:00
2013-04-19 14:58:36 -04:00
2013-05-01 17:51:54 -07:00
2013-07-31 16:36:25 +02:00
2013-03-04 14:45:25 +01:00
2013-01-21 12:20:19 +01:00
2010-11-15 13:57:56 +01:00
2011-12-25 02:21:45 -05:00
2013-01-18 00:28:15 +01:00
2013-02-27 19:10:24 -08:00
2013-04-18 20:27:55 +02:00
2011-01-18 06:33:54 +01:00
2013-05-23 11:09:29 +02:00
2011-02-03 00:05:43 +01:00
2011-05-10 10:00:21 +02:00
2011-12-27 20:45:25 +01:00
2013-05-01 17:51:54 -07:00
2011-07-01 16:11:15 -07:00
2011-07-01 16:11:15 -07:00
2012-11-09 17:05:07 -08:00
2011-11-01 09:19:49 +01:00
2011-02-04 14:28:58 -08:00
2012-09-28 11:34:33 +09:00
2011-01-18 06:33:54 +01:00
2013-04-18 20:27:55 +02:00
2013-05-29 12:29:18 +02:00
2012-05-09 20:49:18 -04:00
2012-10-15 13:39:12 +02:00
2012-09-21 12:11:08 +02:00
2011-12-25 02:43:17 +01:00
2013-05-15 14:11:07 +02:00
2013-04-02 01:26:10 +02:00
2013-04-05 20:12:54 +02:00
2012-08-14 21:55:30 -07:00
2011-10-31 19:30:28 -04:00
2013-06-11 02:51:03 -07:00
2013-02-27 19:10:24 -08:00
2013-05-01 17:29:18 -04:00
2012-09-21 12:12:05 +02:00
2010-10-21 10:12:48 +11:00
2013-09-30 21:42:52 +02:00
2013-10-09 00:01:25 -04:00
2011-10-31 19:30:28 -04:00
2013-09-27 16:18:23 +02:00
2013-08-01 11:45:15 +02:00
2013-05-28 13:11:01 -07:00
2012-09-24 14:29:01 +02:00
2013-10-09 00:01:25 -04:00