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