]> git.baikalelectronics.ru Git - kernel.git/commit
net: Set sk_txhash from a random number
authorTom Herbert <tom@herbertland.com>
Tue, 28 Jul 2015 23:02:05 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 05:44:04 +0000 (22:44 -0700)
commit42aa0204099ce181ccd55a4fc0e16b523814a83e
tree7fef04aed6fab396e8e1205a37fff6ad3a2450ed
parent7439f9aad68aa6ceadbdcf8be84d8b92f2185447
net: Set sk_txhash from a random number

This patch creates sk_set_txhash and eliminates protocol specific
inet_set_txhash and ip6_set_txhash. sk_set_txhash simply sets a
random number instead of performing flow dissection. sk_set_txash
is also allowed to be called multiple times for the same socket,
we'll need this when redoing the hash for negative routing advice.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
include/net/ipv6.h
include/net/sock.h
net/ipv4/datagram.c
net/ipv4/tcp_ipv4.c
net/ipv6/datagram.c
net/ipv6/tcp_ipv6.c