]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Make rt6_multipath_hash similar to fib_multipath_hash
authorDavid Ahern <dsahern@gmail.com>
Fri, 2 Mar 2018 16:32:15 +0000 (08:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 18:04:21 +0000 (13:04 -0500)
commita8eb9925ca9a93d507e5de6f5ca743aa4cc53d36
tree70a791fb9e3287bb93310a0aef545b227c69e4d7
parent173b9b6a48a8e95eb9d9043673c9b12a16e950ff
net/ipv6: Make rt6_multipath_hash similar to fib_multipath_hash

Make rt6_multipath_hash more of a direct parallel to fib_multipath_hash
and reduce stack and overhead in the process: get_hash_from_flowi6 is
just a wrapper around __get_hash_from_flowi6 with another stack
allocation for flow_keys. Move setting the addresses, protocol and
label into rt6_multipath_hash and allow it to make the call to
flow_hash_from_keys.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c