bpf: Add support for changing congestion control
Added support for changing congestion control for SOCK_OPS bpf programs through the setsockopt bpf helper function. It also adds a new SOCK_OPS op, BPF_SOCK_OPS_NEEDS_ECN, that is needed for congestion controls, like dctcp, that need to enable ECN in the SYN packets. Signed-off-by:Lawrence Brakmo <brakmo@fb.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/tcp.h 8 additions, 1 deletioninclude/net/tcp.h
- include/uapi/linux/bpf.h 3 additions, 0 deletionsinclude/uapi/linux/bpf.h
- net/core/filter.c 17 additions, 1 deletionnet/core/filter.c
- net/ipv4/tcp.c 1 addition, 1 deletionnet/ipv4/tcp.c
- net/ipv4/tcp_cong.c 22 additions, 10 deletionsnet/ipv4/tcp_cong.c
- net/ipv4/tcp_input.c 2 additions, 1 deletionnet/ipv4/tcp_input.c
- net/ipv4/tcp_output.c 5 additions, 3 deletionsnet/ipv4/tcp_output.c
Loading
Please register or sign in to comment