diff options
author | David Ahern <dsahern@gmail.com> | 2018-06-03 08:15:19 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-06-03 18:29:07 -0700 |
commit | bd3a08aaa9a383ffbbd5b788b797ae6e64eaa7a1 (patch) | |
tree | 08299ba501c806105ed4568f4e3094b5040d6d3e /net/core | |
parent | 432bdb581e410ad3cea8f04e9323397f17501e3e (diff) | |
download | linux-bd3a08aaa9a383ffbbd5b788b797ae6e64eaa7a1.tar.bz2 |
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 'net/core')
-rw-r--r-- | net/core/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index a72ea9f61010..3d9ba7e5965a 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -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; |