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)
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

Simple merge
diff --cc net/ipv4/udp.c
Simple merge