]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit9a2a537acc75dfd19c4358bc9cb6042bdc60698c
tree70a791fb9e3287bb93310a0aef545b227c69e4d7
parentec7127a5d53d891b77a11433026dca72c57eaf88
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