datapath: Add flow mask cache.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 23 Apr 2014 15:34:08 +0000 (08:34 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 29 Apr 2014 17:43:46 +0000 (10:43 -0700)
commit5604935e4e1cbc16611d2d97f50b717aa31e8ec5
treee00f97ba76f1936dd3dfcc1ad19b52af7a70cda3
parente379e4d167e31d1cd5f7b86fff091a2e09ff6e45
datapath: Add flow mask cache.

On every packet OVS needs to lookup flow-table with every mask
until it finds a match. The packet flow-key is first masked
with mask in the list and then the masked key is looked up in
flow-table.  Therefore number of masks can affect packet
processing performance.

Following patch adds mask index to mask cache from last
pakcet lookup in same flow.  Index of mask is stored in
this cache. This cache is searched by 5 tuple hash (skb rxhash).

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Thomas Graf <tgraf@redhat.com>
datapath/datapath.c
datapath/flow_table.c
datapath/flow_table.h