aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/bpf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index ee2193287cbe..9221f653fee3 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -298,6 +298,17 @@ enum bpf_func_id {
298 * Return: csum result 298 * Return: csum result
299 */ 299 */
300 BPF_FUNC_csum_diff, 300 BPF_FUNC_csum_diff,
301
302 /**
303 * bpf_skb_[gs]et_tunnel_opt(skb, opt, size)
304 * retrieve or populate tunnel options metadata
305 * @skb: pointer to skb
306 * @opt: pointer to raw tunnel option data
307 * @size: size of @opt
308 * Return: 0 on success for set, option size for get
309 */
310 BPF_FUNC_skb_get_tunnel_opt,
311 BPF_FUNC_skb_set_tunnel_opt,
301 __BPF_FUNC_MAX_ID, 312 __BPF_FUNC_MAX_ID,
302}; 313};
303 314
@@ -305,6 +316,7 @@ enum bpf_func_id {
305 316
306/* BPF_FUNC_skb_store_bytes flags. */ 317/* BPF_FUNC_skb_store_bytes flags. */
307#define BPF_F_RECOMPUTE_CSUM (1ULL << 0) 318#define BPF_F_RECOMPUTE_CSUM (1ULL << 0)
319#define BPF_F_INVALIDATE_HASH (1ULL << 1)
308 320
309/* BPF_FUNC_l3_csum_replace and BPF_FUNC_l4_csum_replace flags. 321/* BPF_FUNC_l3_csum_replace and BPF_FUNC_l4_csum_replace flags.
310 * First 4 bits are for passing the header field size. 322 * First 4 bits are for passing the header field size.
@@ -329,6 +341,7 @@ enum bpf_func_id {
329 341
330/* BPF_FUNC_skb_set_tunnel_key flags. */ 342/* BPF_FUNC_skb_set_tunnel_key flags. */
331#define BPF_F_ZERO_CSUM_TX (1ULL << 1) 343#define BPF_F_ZERO_CSUM_TX (1ULL << 1)
344#define BPF_F_DONT_FRAGMENT (1ULL << 2)
332 345
333/* user accessible mirror of in-kernel sk_buff. 346/* user accessible mirror of in-kernel sk_buff.
334 * new fields can only be added to the end of this structure 347 * new fields can only be added to the end of this structure