]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: md5: only call tp->af_specific->md5_lookup() for md5 sockets
authorEric Dumazet <edumazet@google.com>
Mon, 23 Apr 2018 21:46:25 +0000 (14:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 17:20:03 +0000 (13:20 -0400)
commita0a980b36e8c5702066460884d18c040d2e21d4d
treea48a7aee60f3098f9a0f50296500556f1dec8b91
parent3895db62d5e9f829e55c9298baf4e870be3b2fe0
tcp: md5: only call tp->af_specific->md5_lookup() for md5 sockets

RETPOLINE made calls to tp->af_specific->md5_lookup() quite expensive,
given they have no result.
We can omit the calls for sockets that have no md5 keys.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c