]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8cf306638ef37d286c7340d0ede59e2c4bc6095e
treeaf5886ed49d500ad34a2d0a8d69e92c6d3cf84fe
parentfd1812fbe371476db70562df383e5463d755cfaf
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