diff options
author | David S. Miller <davem@davemloft.net> | 2017-12-08 10:48:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-08 10:48:25 -0500 |
commit | 62cd277039a3413604f486f0ca87faec810d7bb7 (patch) | |
tree | 2bc63a72a3c46a91fc4dcf0ed2a7e60a69859c2a /include/uapi | |
parent | 124da8f6118bce3d9aeb5c6f5395ed131141aad5 (diff) | |
parent | 47adc5b07c6e0336896f84e404a6a7e1dce7878e (diff) | |
download | linux-62cd277039a3413604f486f0ca87faec810d7bb7.tar.bz2 |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
Alexei Starovoitov says:
====================
pull-request: bpf-next 2017-12-07
The following pull-request contains BPF updates for your net-next tree.
The main changes are:
1) Detailed documentation of BPF development process from Daniel.
2) Addition of is_fullsock, snd_cwnd and srtt_us fields to bpf_sock_ops
from Lawrence.
3) Minor follow up for bpf_skb_set_tunnel_key() from William.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/bpf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 4c223ab30293..80d62e88590c 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -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. |