History

bpf: Support for per connection SYN/SYN-ACK RTOs

This patch adds support for setting a per connection SYN and SYN_ACK RTOs from within a BPF_SOCK_OPS program. For example, to set small RTOs when it is known both hosts are within a datacenter.

Lawrence Brakmo committed 9 years ago

Commit 8550f321 parent ae161894 files · +17 −2Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+3−0
@@ -748,6 +748,9 @@ struct bpf_sock_ops { · 747 unmodified lines
748748 */
749749 enum {
750750 BPF_SOCK_OPS_VOID,
751+ BPF_SOCK_OPS_TIMEOUT_INIT, /* Should return SYN-RTO value to use or
752+ * -1 if default value should be used
753+ */
751754 };
752755
753756 #endif /* _UAPI__LINUX_BPF_H__ */