]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb2289b689e002c257678dd84fdbe7cc0770d7c4
treed335c073d98d9a96983b1e0b5a341957c8dc982d
parent536bf767fe597c79bd5a26643db3f96eb7055067
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