]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ad5c952e4c0e818e23b95a2c31bf2c48c51eccb
treeea5bbed24d20e64820fe6f5d50e3eabaed660caa
parentd7ceaf1b136e806e0812f3389fce4150310dfcd0
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