Re: [RFC PATCH net-next 06/15] bpf: Sample bpf program to set initial window

2017-06-13 Thread David Miller
From: Lawrence Brakmo Date: Tue, 13 Jun 2017 10:59:55 -0700 > +SEC("sockops") > +int bpf_rwnd(struct __sk_buff *skb) > +{ > + struct bpf_socket_ops *skops = (struct bpf_socket_ops *) skb; > + char fmt1[] = "BPF command: %d\n"; > + char fmt2[] = " Returning %d\n"; > + int op; > +

[RFC PATCH net-next 06/15] bpf: Sample bpf program to set initial window

2017-06-13 Thread Lawrence Brakmo
The sample bpf program, tcp_rwnd_kern.c, sets the initial advertized window to 40 packets in an environment where distinct IPv6 prefixes indicate that both hosts are not in the same data center. Signed-off-by: Lawrence Brakmo --- samples/bpf/Makefile| 1 + samples/bpf/tcp_rwnd_kern.c |