|
@@ -982,7 +982,8 @@ struct bpf_sock_ops {
|
|
|
};
|
|
|
|
|
|
/* Definitions for bpf_sock_ops_cb_flags */
|
|
|
-#define BPF_SOCK_OPS_ALL_CB_FLAGS 0 /* Mask of all currently
|
|
|
+#define BPF_SOCK_OPS_RTO_CB_FLAG (1<<0)
|
|
|
+#define BPF_SOCK_OPS_ALL_CB_FLAGS 0x1 /* Mask of all currently
|
|
|
* supported cb flags
|
|
|
*/
|
|
|
|
|
@@ -1019,6 +1020,11 @@ enum {
|
|
|
* a congestion threshold. RTTs above
|
|
|
* this indicate congestion
|
|
|
*/
|
|
|
+ BPF_SOCK_OPS_RTO_CB, /* Called when an RTO has triggered.
|
|
|
+ * Arg1: value of icsk_retransmits
|
|
|
+ * Arg2: value of icsk_rto
|
|
|
+ * Arg3: whether RTO has expired
|
|
|
+ */
|
|
|
};
|
|
|
|
|
|
#define TCP_BPF_IW 1001 /* Set TCP initial congestion window */
|