bpf: Add TCP connection BPF callbacks
authorLawrence Brakmo <brakmo@fb.com>
Sat, 1 Jul 2017 03:02:47 +0000 (20:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Jul 2017 23:15:14 +0000 (16:15 -0700)
commit9872a4bde31b0b055448e9ac1f4c9ee62d978766
treed335c073d98d9a96983b1e0b5a341957c8dc982d
parent8c4b4c7e9ff0447995750d9329949fa082520269
bpf: Add TCP connection BPF callbacks

Added callbacks to BPF SOCK_OPS type program before an active
connection is intialized and after a passive or active connection is
established.

The following patch demostrates how they can be used to set send and
receive buffer sizes.

Signed-off-by: Lawrence Brakmo <brakmo@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c