flow_dissector: Ignore flow dissector return value from ___skb_get_hash
authorTom Herbert <tom@herbertland.com>
Tue, 1 Sep 2015 16:24:33 +0000 (09:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2015 22:06:23 +0000 (15:06 -0700)
commit6db61d79c1e1b2346e2142d6c950a8d2e8380b82
treeaf5886ed49d500ad34a2d0a8d69e92c6d3cf84fe
parent823b96939578eae67b9d6c0e33a39d6a7b6401e7
flow_dissector: Ignore flow dissector return value from ___skb_get_hash

In ___skb_get_hash ignore return value from skb_flow_dissect_flow_keys.
A failure in that function likely means that there was a parse error,
so we may as well use whatever fields were found before the error was
hit.  This is also good because it means we won't keep trying to derive
the hash on subsequent calls to skb_get_hash for the same packet.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c