Re: [RFC PATCH net-next 13/15] bpf: Sample BPF program to set initial cwnd

2017-06-13 Thread David Miller
From: Lawrence Brakmo Date: Tue, 13 Jun 2017 11:00:02 -0700 > +SEC("sockops") > +int bpf_iw(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 13/15] bpf: Sample BPF program to set initial cwnd

2017-06-13 Thread Lawrence Brakmo
Sample BPF program that assumes hosts are far away (i.e. large RTTs) and sets initial cwnd and initial receive window to 40 packets, send and receive buffers to 1.5MB. In practice there would be a test to insure the hosts are actually far enough away. Signed-off-by: Lawrence Brakmo --- samples/