ofproto-dpif: Allow setting of flow eviction threshold
authorSimon Horman <horms@verge.net.au>
Thu, 28 Jul 2011 23:38:50 +0000 (16:38 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 28 Jul 2011 23:39:29 +0000 (16:39 -0700)
commit084f529087b7d3a3b3e0df470ad4ad39800cbab5
tree79170401dae9f4aadcd442c8c11b85c8ec969c3e
parentb85d8d61a6c3b9c2fa578fa62c795a93544764af
ofproto-dpif: Allow setting of flow eviction threshold

Allow setting the number of flows present in the flow hash
at which point eviction of entries from the kernel flow hash
will begin to occur.

The value may be set using a bridge's other-config column.

e.g.

ovs-vsctl set bridge br3 other-config:flow-eviction-threshold=10000

default is 1000, reflecting constant value previously used.

Increasing this value can result in reduced CPU usage and
packet loss in situations where the number of active flows
is significantly larger than 1000.
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c
vswitchd/vswitch.xml