Re: [RFC PATCH net-next 04/15] bpf: Sample bpf program to set SYN/SYN-ACK RTOs

2017-06-13 Thread David Miller
From: Lawrence Brakmo Date: Tue, 13 Jun 2017 10:59:53 -0700 > + > + // Check for TIMEOUT_INIT operation and IPv6 addresses > + if (op == BPF_SOCKET_OPS_TIMEOUT_INIT && > + skops->family == AF_INET6) { > + > + // If the first 5.5 bytes of the IPv6 address are the sa

[RFC PATCH net-next 04/15] bpf: Sample bpf program to set SYN/SYN-ACK RTOs

2017-06-13 Thread Lawrence Brakmo
The sample BPF program, tcp_synrto_kern.c, sets the SYN and SYN-ACK RTOs to 10ms when both hosts are within the same datacenter (i.e. small RTTs) in an environment where common IPv6 prefixes indicate both hosts are in the same data center. Signed-off-by: Lawrence Brakmo --- samples/bpf/Makefile