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)
commit1869e226a7b3ef75b4f70ede2f1b7229f7157fa4
treeed7271a67ee76860e82aa3fbd27b2d9f42c480c2
parent9d6e0c8b707b1f29f3d4e03714a72fffb417d144
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: 24ba14406c5c ("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