]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
uapi: add access to snd_cwnd and other sock_ops
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Dec 2017 00:01:17 +0000 (16:01 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 12 Dec 2017 00:01:17 +0000 (16:01 -0800)
From upstream kernel commit f19397a5c65665d66e3866b42056f1f58b7a366b
    bpf: Add access to snd_cwnd and others in sock_ops

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/uapi/linux/bpf.h

index 81f9145fc5a633627e87cc19ddf64ff73efe80b0..0defef03021eb6b92ab83e6e8808855de432f0bb 100644 (file)
@@ -941,6 +941,12 @@ struct bpf_sock_ops {
        __u32 local_ip6[4];     /* Stored in network byte order */
        __u32 remote_port;      /* Stored in network byte order */
        __u32 local_port;       /* stored in host byte order */
+       __u32 is_fullsock;      /* Some TCP fields are only valid if
+                                * there is a full socket. If not, the
+                                * fields read as zero.
+                                */
+       __u32 snd_cwnd;
+       __u32 srtt_us;          /* Averaged RTT << 3 in usecs */
 };
 
 /* List of known BPF sock_ops operators.