]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Initialize flowi4_multipath_hash in data path
authorDavid Ahern <dsahern@gmail.com>
Sun, 13 Sep 2020 18:43:39 +0000 (12:43 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:54:56 +0000 (14:54 -0700)
commit8be990c5f7d5fde614e72a31a7d93ee239c559fb
treeed7271a67ee76860e82aa3fbd27b2d9f42c480c2
parented7139c484224649c5cc4e36ac66bac26a3159e3
ipv4: Initialize flowi4_multipath_hash in data path

flowi4_multipath_hash was added by the commit referenced below for
tunnels. Unfortunately, the patch did not initialize the new field
for several fast path lookups that do not initialize the entire flow
struct to 0. Fix those locations. Currently, flowi4_multipath_hash
is random garbage and affects the hash value computed by
fib_multipath_hash for multipath selection.

Fixes: 810ae7e49405 ("route: Add multipath_hash in flowi_common to make user-define hash")
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
net/core/filter.c
net/ipv4/fib_frontend.c
net/ipv4/route.c