commit | a3b18ddb9cc1056eea24e3edc1828cfb3fd0726f | [log] [tgz] |
---|---|---|
author | Tom Herbert <therbert@google.com> | Tue Jul 01 21:33:17 2014 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 07 21:14:21 2014 -0700 |
tree | 5100dd399922df55b29a1acf2b5a4dcc332c10b4 | |
parent | cb1ce2ef387b01686469487edd45994872d52d73 [diff] |
net: Only do flow_dissector hash computation once per packet Add sw_hash flag to skbuff to indicate that skb->hash was computed from flow_dissector. This flag is checked in skb_get_hash to avoid repeatedly trying to compute the hash (ie. in the case that no L4 hash can be computed). Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>