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>
This commit is contained in:

committed by
Alexei Starovoitov

parent
432bdb581e
commit
bd3a08aaa9
@@ -4221,7 +4221,7 @@ static int bpf_ipv6_fib_lookup(struct net *net, struct bpf_fib_lookup *params,
|
||||
fl6.flowi6_oif = 0;
|
||||
strict = RT6_LOOKUP_F_HAS_SADDR;
|
||||
}
|
||||
fl6.flowlabel = params->flowlabel;
|
||||
fl6.flowlabel = params->flowinfo;
|
||||
fl6.flowi6_scope = 0;
|
||||
fl6.flowi6_flags = 0;
|
||||
fl6.mp_hash = 0;
|
||||
|
Reference in New Issue
Block a user