aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-06-03 11:15:19 -0400
committerAlexei Starovoitov <ast@kernel.org>2018-06-03 21:29:07 -0400
commitbd3a08aaa9a383ffbbd5b788b797ae6e64eaa7a1 (patch)
tree08299ba501c806105ed4568f4e3094b5040d6d3e /include/uapi/linux
parent432bdb581e410ad3cea8f04e9323397f17501e3e (diff)
bpf: flowlabel in bpf_fib_lookup should be flowinfo
As Michal noted the flow struct takes both the flow label and priority. Update the bpf_fib_lookup API to note that it is flowinfo and not just the flow label. Cc: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/bpf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 18712b0dbfe7..eeb6237be5c2 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -2629,7 +2629,7 @@ struct bpf_fib_lookup {
2629 union { 2629 union {
2630 /* inputs to lookup */ 2630 /* inputs to lookup */
2631 __u8 tos; /* AF_INET */ 2631 __u8 tos; /* AF_INET */
2632 __be32 flowlabel; /* AF_INET6 */ 2632 __be32 flowinfo; /* AF_INET6, flow_label + priority */
2633 2633
2634 /* output: metric of fib result (IPv4/IPv6 only) */ 2634 /* output: metric of fib result (IPv4/IPv6 only) */
2635 __u32 rt_metric; 2635 __u32 rt_metric;