]> git.baikalelectronics.ru Git - kernel.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)
commitdfa98127c4ecac6786cd6c6d02963940729a19d7
treeba31e8ae21f52048e475daa33f6bb86df5bfc3b5
parent41abd18a97cff1d3ce13656018bcefcf1ee9e8ab
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