datapath: update exact match lookup hash value to avoid hash collision
authorAndy Zhou <azhou@nicira.com>
Tue, 3 Feb 2015 21:57:55 +0000 (13:57 -0800)
committerAndy Zhou <azhou@nicira.com>
Tue, 3 Feb 2015 23:14:41 +0000 (15:14 -0800)
commit0d7bbefe63de42dc39551faebe1089e27d1d0589
tree7f6c0fe8b358057bbdfeef1bf23a5df8b9eb1a60
parentb24701f5f4889e650787bbcd3a063b0026caf210
datapath: update exact match lookup hash value to avoid hash collision

Currently, the exact match cache lookup uses 'skb->hash' as an index.
In most cases, this value will be the same for pre and post
recirculation lookup, threshing the exact match cache. This patch
avoid this hash collision by using the rehashed value, by mixing in
in the 'recirc_id', as the lookup index.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/flow_table.c