]> 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)
commitf9af2f3c3ba43289cbf4e5f6ac14d0f14cf53cd3
treeba31e8ae21f52048e475daa33f6bb86df5bfc3b5
parent4cb47a70474b3fcdf6574b0296287f62a6c55464
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