datapath: Simplify flow mask cache delete.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 14 Aug 2014 18:23:32 +0000 (11:23 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 14 Aug 2014 19:22:10 +0000 (12:22 -0700)
commit00b975b6e8ab06ad3f03cdab019e92e0a79eca9b
tree058d2d559ca904b791e993937fcf75f47120bc02
parente1da2b3834b57de0262975edd805d1c944e365a4
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