diff options
author | Eric Dumazet <edumazet@google.com> | 2013-05-20 06:52:26 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-20 14:00:42 -0700 |
commit | 71cea17ed39fdf1c0634f530ddc6a2c2fc601c2b (patch) | |
tree | ec6ec3929a41948fb7fef76cceaebf2f1681f1d8 /arch/arm/net | |
parent | 168fc21a971e4bc821a7838ccc39b7bdaf316c11 (diff) | |
download | blackbird-op-linux-71cea17ed39fdf1c0634f530ddc6a2c2fc601c2b.tar.gz blackbird-op-linux-71cea17ed39fdf1c0634f530ddc6a2c2fc601c2b.zip |
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>
Diffstat (limited to 'arch/arm/net')
0 files changed, 0 insertions, 0 deletions