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.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -748,6 +748,9 @@ struct bpf_sock_ops { · 747 unmodified lines | ||
| 748 | 748 | */ |
| 749 | 749 | enum { |
| 750 | 750 | 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 | + */ | |
| 751 | 754 | }; |
| 752 | 755 | |
| 753 | 756 | #endif /* _UAPI__LINUX_BPF_H__ */ |