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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -2629,7 +2629,7 @@ struct bpf_fib_lookup { · 2628 unmodified lines | |||
| 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; |