ipv6: Use multipath hash from flow info if available
authorJakub Sitnicki <jkbs@redhat.com>
Wed, 23 Aug 2017 07:58:31 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:21:17 +0000 (18:21 -0700)
commitb673d6cceae2b3e106addd27b79d321cc739bd43
treeea5bbed24d20e64820fe6f5d50e3eabaed660caa
parent956b45318a27cefa5e99fbbbe703ea8a2a3aee13
ipv6: Use multipath hash from flow info if available

Allow our callers to influence the choice of ECMP link by honoring the
hash passed together with the flow info. This allows for special
treatment of ICMP errors which we would like to route over the same path
as the IPv6 datagram that triggered the error.

Also go through rt6_multipath_hash(), in the usual case when we aren't
dealing with an ICMP error, so that there is one central place where
multipath hash is computed.

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c