diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2016-03-09 05:00:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-11 23:14:27 +0300 |
commit | 4018ab1875e0d00b84ac61bc15427136ad55849e (patch) | |
tree | 8ffadc3b984132b1cd44a8ab53e7fce257a8198f /include/uapi/linux/bpf.h | |
parent | 8eb3b99554b82da968d1fbc00df9f3156c5e2d63 (diff) | |
download | linux-4018ab1875e0d00b84ac61bc15427136ad55849e.tar.xz |
bpf: support flow label for bpf_skb_{set, get}_tunnel_key
This patch extends bpf_tunnel_key with a tunnel_label member, that maps
to ip_tunnel_key's label so underlying backends like vxlan and geneve
can propagate the label to udp_tunnel6_xmit_skb(), where it's being set
in the IPv6 header. It allows for having 20 more bits to encode/decode
flow related meta information programmatically. Tested with vxlan and
geneve.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r-- | include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 0e30b19012a5..924f537183fd 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -375,6 +375,7 @@ struct bpf_tunnel_key { }; __u8 tunnel_tos; __u8 tunnel_ttl; + __u32 tunnel_label; }; #endif /* _UAPI__LINUX_BPF_H__ */ |