net: Recompute sk_txhash on negative routing advice
authorTom Herbert <tom@herbertland.com>
Tue, 28 Jul 2015 23:02:06 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 05:44:05 +0000 (22:44 -0700)
commit265f94ff54d62503663d9c788ba1f082e448f8b8
tree23b4f2c90130092b17f1c560331266cb85cb4a26
parent877d1f6291f8e391237e324be58479a3e3a7407c
net: Recompute sk_txhash on negative routing advice

When a connection is failing a transport protocol calls
dst_negative_advice to try to get a better route. This patch includes
changing the sk_txhash in that function. This provides a rudimentary
method to try to find a different path in the network since sk_txhash
affects ECMP on the local host and through the network (via flow labels
or UDP source port in encapsulation).

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h