net: ipv4: Set addr_type in hash_keys for forwarded case
authorDavid Ahern <dsahern@gmail.com>
Wed, 21 Feb 2018 19:00:54 +0000 (11:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 06:41:15 +0000 (22:41 -0800)
commit97ba6e5ff68454320695d1372d035c624b66c4ba
tree608c5f5bdd2ab86662ff1fea4c6ab2821f82eafb
parent73cb791fe41cdffda6f26aa0559dc17c11d0ee38
net: ipv4: Set addr_type in hash_keys for forwarded case

[ Upstream commit 1fe4b1184c2ae2bfbf9e8b14c9c0c1945c98f205 ]

The result of the skb flow dissect is copied from keys to hash_keys to
ensure only the intended data is hashed. The original L4 hash patch
overlooked setting the addr_type for this case; add it.

Fixes: bf4e0a3db97eb ("net: ipv4: add support for ECMP hash policy choice")
Reported-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c