openvswitch: Move flow table rehashing to flow install.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 17 Sep 2013 16:38:23 +0000 (09:38 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 17 Sep 2013 16:38:23 +0000 (09:38 -0700)
commite7f133290660d976da8cb20e9bc7310d0cd19341
treec4eb7687f7aeb2c20a3e23006d811a7495ca9ed4
parent272b98c6455f00884f0350f775c5342358ebb73f
openvswitch: Move flow table rehashing to flow install.

Rehashing in ovs-workqueue can cause ovs-mutex lock contentions
in case of heavy flow setups where both needs ovs-mutex.  So by
moving rehashing to flow-setup we can eliminate contention.
This also simplify ovs locking and reduces dependence on
workqueue.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c
net/openvswitch/datapath.h