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:10:04 +0000 (15:10 -0800)
commit284658876339bc25882c00488749326baa5bf570
tree01485e9e68bc487b25a468d0e7d8e1b3410fb19c
parent23b48dc1821210e24ba783c6377f2cc9e5719fee
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