OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Feb 2018 19:30:51 +0000 (14:30 -0500)
commit1fe4b1184c2ae2bfbf9e8b14c9c0c1945c98f205
treebb8a53b6a565b573bcfbff713003782bb9d27c5f
parent350c9f484bde93ef229682eedd98cd5f74350f7f
net: ipv4: Set addr_type in hash_keys for forwarded case

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>
net/ipv4/route.c