1
0
Files
linux/include/net
Eric Dumazet c25eb3bfb9 net: Convert TCP/DCCP listening hash tables to use RCU
This is the last step to be able to perform full RCU lookups
in __inet_lookup() : After established/timewait tables, we
add RCU lookups to listening hash table.

The only trick here is that a socket of a given type (TCP ipv4,
TCP ipv6, ...) can now flight between two different tables
(established and listening) during a RCU grace period, so we
must use different 'nulls' end-of-chain values for two tables.

We define a large value :

#define LISTENING_NULLS_BASE (1U << 29)

So that slots in listening table are guaranteed to have different
end-of-chain values than slots in established table. A reader can
still detect it finished its lookup in the right chain.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-23 17:22:55 -08:00
..
2008-10-22 18:54:47 -05:00
2008-10-31 00:56:49 -07:00
2008-10-31 00:56:49 -07:00
2008-09-12 16:30:20 -07:00
2008-11-20 21:10:23 -08:00
2008-07-05 21:26:57 -07:00
2008-06-11 21:00:38 -07:00
2008-06-11 21:00:38 -07:00
2008-10-16 11:21:47 -07:00
2008-06-11 21:00:38 -07:00
2008-11-12 00:54:54 -08:00
2008-11-16 23:01:49 -08:00
2008-06-11 21:00:38 -07:00
2008-07-05 21:25:39 -07:00
2008-11-16 19:39:21 -08:00