diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2016-03-09 03:00:05 +0100 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:10 +0300 |
| commit | e8a3a06c6113522d937a844aa94a45ec70557abf (patch) | |
| tree | 33a5380e0afd24f0ea221044921d44455a83fa4d /kernel/bpf/stackmap.c | |
| parent | 1dead29200778cad978791e29d8cb97853ff39d4 (diff) | |
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>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions
