]> 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)
commitca322455dd015d452096ed4e442ada333af5dedf
treeed7271a67ee76860e82aa3fbd27b2d9f42c480c2
parent0f801c78040a3fb848677dca0cbc8d457c4ca00f
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: 7f7e38416114 ("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