datapath: Simplify flow mask cache delete.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 13 Aug 2014 07:02:18 +0000 (00:02 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 14 Aug 2014 19:04:53 +0000 (12:04 -0700)
commit3dd6d3a24a212df54d4b7940c565d861290b32a8
treef4cc0877d065cbd9b9173f1de0b8545889ca480d
parentcebb1d20ef238acd0983c96e3a4111561938ce5f
datapath: Simplify flow mask cache delete.

Currently on mask delete OVS moves last mask to the deleted
place to keep flow cache consistent and compact for per cpu
cache. But that generate duplicate entries in mask cache array
which results in multiple flow lookups in case we miss flow
cache.
Following patch simply sets NULL for deleted entry.

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