Re: [PATCH v3 bpf-next 1/2] bpf: Adds support for setting window clamp

2020-12-02 Thread Eric Dumazet
On 12/2/20 9:29 PM, Prankur gupta wrote: > Adds a new bpf_setsockopt for TCP sockets, TCP_BPF_WINDOW_CLAMP, > which sets the maximum receiver window size. It will be useful for > limiting receiver window based on RTT. > > Signed-off-by: Prankur gupta > --- > include/net/tcp.h | 1 + > net/co

[PATCH v3 bpf-next 1/2] bpf: Adds support for setting window clamp

2020-12-02 Thread Prankur gupta
Adds a new bpf_setsockopt for TCP sockets, TCP_BPF_WINDOW_CLAMP, which sets the maximum receiver window size. It will be useful for limiting receiver window based on RTT. Signed-off-by: Prankur gupta --- include/net/tcp.h | 1 + net/core/filter.c | 3 +++ net/ipv4/tcp.c| 23 ++-