From: Eric Dumazet Date: Mon, 20 May 2013 06:52:26 +0000 (+0000) Subject: tcp: md5: remove spinlock usage in fast path X-Git-Tag: v3.11-rc1~16^2~369 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71cea17ed39fdf1c0634f530ddc6a2c2fc601c2b;p=pandora-kernel.git 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 Cc: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed