Eric Dumazet 2c1409a0a2 inetpeer: Optimize inet_getid()
While investigating for network latencies, I found inet_getid() was a
contention point for some workloads, as inet_peer_idlock is shared
by all inet_getid() users regardless of peers.

One way to fix this is to make ip_id_count an atomic_t instead
of __u16, and use atomic_add_return().

In order to keep sizeof(struct inet_peer) = 64 on 64bit arches
tcp_ts_stamp is also converted to __u32 instead of "unsigned long".

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-11-13 20:46:58 -08:00
..
2009-10-18 21:31:59 -07:00
2009-09-01 17:40:57 -07:00
2009-10-18 18:52:53 -07:00
2009-11-13 20:46:55 -08:00
2009-09-14 17:03:01 -07:00
2009-11-01 23:55:10 -08:00
2009-11-13 20:38:49 -08:00
2009-10-18 18:52:53 -07:00
2009-11-13 20:46:58 -08:00
2009-10-18 18:52:53 -07:00
2009-10-18 18:52:53 -07:00
2009-09-14 17:03:01 -07:00
2009-10-29 01:13:49 -07:00
2009-09-14 17:03:01 -07:00
2009-11-13 20:46:58 -08:00
2009-11-13 20:46:58 -08:00
2009-10-18 18:52:53 -07:00
2009-10-20 18:55:46 -07:00
2009-09-14 17:03:01 -07:00
2009-11-10 20:54:38 -08:00