Re: [RFC PATCH net-next v2 10/15] bpf: Add support for changing congestion control

2017-06-19 Thread Lawrence Brakmo
On 6/19/17, 3:34 PM, "Daniel Borkmann" wrote: On 06/18/2017 04:39 AM, Lawrence Brakmo wrote: > On 6/16/17, 6:58 AM, "Daniel Borkmann" wrote: [...] > > /* Change congestion control for socket */ > > -int tcp_set_congestion_control(struct sock *sk, const char *name

Re: [RFC PATCH net-next v2 10/15] bpf: Add support for changing congestion control

2017-06-19 Thread Daniel Borkmann
On 06/18/2017 04:39 AM, Lawrence Brakmo wrote: On 6/16/17, 6:58 AM, "Daniel Borkmann" wrote: [...] > /* Change congestion control for socket */ > -int tcp_set_congestion_control(struct sock *sk, const char *name) > +int tcp_set_congestion_control(struct sock *sk, const char *n

Re: [RFC PATCH net-next v2 10/15] bpf: Add support for changing congestion control

2017-06-17 Thread Lawrence Brakmo
On 6/16/17, 6:58 AM, "Daniel Borkmann" wrote: On 06/15/2017 10:08 PM, Lawrence Brakmo wrote: > Added support for changing congestion control for SOCKET_OPS bps > programs through the setsockopt bpf helper function. It also adds > a new SOCKET_OPS op, BPF_SOCKET_OPS_NEEDS_ECN, tha

Re: [RFC PATCH net-next v2 10/15] bpf: Add support for changing congestion control

2017-06-16 Thread Daniel Borkmann
On 06/15/2017 10:08 PM, Lawrence Brakmo wrote: Added support for changing congestion control for SOCKET_OPS bps programs through the setsockopt bpf helper function. It also adds a new SOCKET_OPS op, BPF_SOCKET_OPS_NEEDS_ECN, that is needed for congestion controls, like dctcp, that need to enable

[RFC PATCH net-next v2 10/15] bpf: Add support for changing congestion control

2017-06-15 Thread Lawrence Brakmo
Added support for changing congestion control for SOCKET_OPS bps programs through the setsockopt bpf helper function. It also adds a new SOCKET_OPS op, BPF_SOCKET_OPS_NEEDS_ECN, that is needed for congestion controls, like dctcp, that need to enable ECN in the SYN packets. Signed-off-by: Lawrence