diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/filter.h | 2 | ||||
| -rw-r--r-- | include/net/tcp.h | 3 | ||||
| -rw-r--r-- | include/uapi/linux/bpf.h | 4 | ||||
| -rw-r--r-- | include/uapi/linux/pkt_sched.h | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index 6d944369ca87..ff65d22cf336 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
| @@ -747,7 +747,7 @@ bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default) | |||
| 747 | return size <= size_default && (size & (size - 1)) == 0; | 747 | return size <= size_default && (size & (size - 1)) == 0; |
| 748 | } | 748 | } |
| 749 | 749 | ||
| 750 | #define bpf_ctx_wide_store_ok(off, size, type, field) \ | 750 | #define bpf_ctx_wide_access_ok(off, size, type, field) \ |
| 751 | (size == sizeof(__u64) && \ | 751 | (size == sizeof(__u64) && \ |
| 752 | off >= offsetof(type, field) && \ | 752 | off >= offsetof(type, field) && \ |
| 753 | off + sizeof(__u64) <= offsetofend(type, field) && \ | 753 | off + sizeof(__u64) <= offsetofend(type, field) && \ |
diff --git a/include/net/tcp.h b/include/net/tcp.h index cca3c59b98bf..f42d300f0cfa 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -1064,7 +1064,8 @@ void tcp_get_default_congestion_control(struct net *net, char *name); | |||
| 1064 | void tcp_get_available_congestion_control(char *buf, size_t len); | 1064 | void tcp_get_available_congestion_control(char *buf, size_t len); |
| 1065 | void tcp_get_allowed_congestion_control(char *buf, size_t len); | 1065 | void tcp_get_allowed_congestion_control(char *buf, size_t len); |
| 1066 | int tcp_set_allowed_congestion_control(char *allowed); | 1066 | int tcp_set_allowed_congestion_control(char *allowed); |
| 1067 | int tcp_set_congestion_control(struct sock *sk, const char *name, bool load, bool reinit); | 1067 | int tcp_set_congestion_control(struct sock *sk, const char *name, bool load, |
| 1068 | bool reinit, bool cap_net_admin); | ||
| 1068 | u32 tcp_slow_start(struct tcp_sock *tp, u32 acked); | 1069 | u32 tcp_slow_start(struct tcp_sock *tp, u32 acked); |
| 1069 | void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked); | 1070 | void tcp_cong_avoid_ai(struct tcp_sock *tp, u32 w, u32 acked); |
| 1070 | 1071 | ||
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 82699845ef79..fa1c753dcdbc 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
| @@ -3248,7 +3248,7 @@ struct bpf_sock_addr { | |||
| 3248 | __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. | 3248 | __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. |
| 3249 | * Stored in network byte order. | 3249 | * Stored in network byte order. |
| 3250 | */ | 3250 | */ |
| 3251 | __u32 user_ip6[4]; /* Allows 1,2,4-byte read and 4,8-byte write. | 3251 | __u32 user_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. |
| 3252 | * Stored in network byte order. | 3252 | * Stored in network byte order. |
| 3253 | */ | 3253 | */ |
| 3254 | __u32 user_port; /* Allows 4-byte read and write. | 3254 | __u32 user_port; /* Allows 4-byte read and write. |
| @@ -3260,7 +3260,7 @@ struct bpf_sock_addr { | |||
| 3260 | __u32 msg_src_ip4; /* Allows 1,2,4-byte read and 4-byte write. | 3260 | __u32 msg_src_ip4; /* Allows 1,2,4-byte read and 4-byte write. |
| 3261 | * Stored in network byte order. | 3261 | * Stored in network byte order. |
| 3262 | */ | 3262 | */ |
| 3263 | __u32 msg_src_ip6[4]; /* Allows 1,2,4-byte read and 4,8-byte write. | 3263 | __u32 msg_src_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. |
| 3264 | * Stored in network byte order. | 3264 | * Stored in network byte order. |
| 3265 | */ | 3265 | */ |
| 3266 | __bpf_md_ptr(struct bpf_sock *, sk); | 3266 | __bpf_md_ptr(struct bpf_sock *, sk); |
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index 1f623252abe8..18f185299f47 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h | |||
| @@ -1174,7 +1174,7 @@ enum { | |||
| 1174 | TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME, /* s64 */ | 1174 | TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME, /* s64 */ |
| 1175 | TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION, /* s64 */ | 1175 | TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION, /* s64 */ |
| 1176 | TCA_TAPRIO_ATTR_FLAGS, /* u32 */ | 1176 | TCA_TAPRIO_ATTR_FLAGS, /* u32 */ |
| 1177 | TCA_TAPRIO_ATTR_TXTIME_DELAY, /* s32 */ | 1177 | TCA_TAPRIO_ATTR_TXTIME_DELAY, /* u32 */ |
| 1178 | __TCA_TAPRIO_ATTR_MAX, | 1178 | __TCA_TAPRIO_ATTR_MAX, |
| 1179 | }; | 1179 | }; |
| 1180 | 1180 | ||
