aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-03-08 13:58:52 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-08 13:58:52 -0500
commitd24ad3fc0e454b4354acc10149ecceda445d6a75 (patch)
tree5ae7116e18f4bd6646ba8f5809a1d1eb6efbda33 /include/uapi
parent810813c47a564416f6306ae214e2661366c987a7 (diff)
parent1400615d64cf5afee533aff8234c837da465841b (diff)
Merge branch 'bpf-next'
Daniel Borkmann says: ==================== BPF updates Couple of misc updates to BPF, besides others this series adds bpf_csum_diff() to be used with L3 csums, allows for managing tunnel options for collect meta data mode, and enabling ipv6 traffic class for collect meta data in vxlan specifically (geneve already supports it). For more details, please see individual patches. The series requires net to be merged into net-next first to avoid any further pending merge conflicts. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-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