udp: In udp_flow_src_port use random hash value if skb_get_hash fails
authorTom Herbert <therbert@google.com>
Tue, 24 Feb 2015 17:17:31 +0000 (09:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2015 21:00:01 +0000 (16:00 -0500)
commit723b8e460d87e957f251dc5764f4ab86af6ab44e
tree2453607eb05e7cdf3913fedfe55599641c6a66b1
parentfed0a159c8c5e453d79d6a73897c576efea0a8a5
udp: In udp_flow_src_port use random hash value if skb_get_hash fails

In the unlikely event that skb_get_hash is unable to deduce a hash
in udp_flow_src_port we use a consistent random value instead.
This is specified in GRE/UDP draft section 3.2.1:
https://tools.ietf.org/html/draft-ietf-tsvwg-gre-in-udp-encap-04

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c