Eric Dumazet 71cea17ed3 tcp: md5: remove spinlock usage in fast path
TCP md5 code uses per cpu variables but protects access to them with
a shared spinlock, which is a contention point.

[ tcp_md5sig_pool_lock is locked twice per incoming packet ]

Makes things much simpler, by allocating crypto structures once, first
time a socket needs md5 keys, and not deallocating them as they are
really small.

Next step would be to allow crypto allocations being done in a NUMA
aware way.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-05-20 14:00:42 -07:00
..
2013-05-03 16:08:58 -04:00
2013-02-15 15:10:37 -05:00
2013-05-06 11:06:51 -04:00
2013-03-17 14:35:13 -04:00
2012-10-08 17:42:36 -04:00
2013-03-26 12:27:19 -04:00
2013-03-26 12:27:18 -04:00
2013-03-26 12:27:19 -04:00
2013-03-26 12:27:18 -04:00
2013-04-14 15:41:49 -04:00
2013-03-21 11:47:50 -04:00
2012-01-20 14:17:26 -05:00
2012-01-20 14:17:26 -05:00
2012-05-17 14:59:59 -04:00
2011-03-31 11:26:23 -03:00
2013-03-21 11:47:50 -04:00
2013-03-21 11:47:50 -04:00
2011-03-31 11:26:23 -03:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00