Re: [RFC PATCH net-next 09/15] bpf: Sample BPF program to set buffer sizes

2017-06-13 Thread David Miller
From: Lawrence Brakmo Date: Tue, 13 Jun 2017 10:59:58 -0700 > diff --git a/samples/bpf/tcp_bufs_kern.c b/samples/bpf/tcp_bufs_kern.c > new file mode 100644 > index 000..a407b73 > --- /dev/null > +++ b/samples/bpf/tcp_bufs_kern.c ... > +SEC("sockops") > +int bpf_bufs(struct __sk_buff *skb) > +

[RFC PATCH net-next 09/15] bpf: Sample BPF program to set buffer sizes

2017-06-13 Thread Lawrence Brakmo
This patch contains a BPF program to set initial receive window to 40 packets and send and receive buffers to 1.5MB. This would usually be done after doing appropriate checks that indicate the hosts are far enough away (i.e. large RTT). Signed-off-by: Lawrence Brakmo --- samples/bpf/Makefile