]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: md5: add tcp_md5_needed jump label
authorEric Dumazet <edumazet@google.com>
Tue, 27 Nov 2018 23:03:21 +0000 (15:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2018 21:28:03 +0000 (13:28 -0800)
commit6015c71e656bb6895b416c31a8b7db457e45cecf
treeba31e8ae21f52048e475daa33f6bb86df5bfc3b5
parent2f69555315ad7dc1ac37366b2ac2429e2d24d444
tcp: md5: add tcp_md5_needed jump label

Most linux hosts never setup TCP MD5 keys. We can avoid a
cache line miss (accessing tp->md5ig_info) on RX and TX
using a jump label.

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