openvswitch: Simplify datapath locking.
authorPravin B Shelar <pshelar@nicira.com>
Mon, 15 Apr 2013 20:23:03 +0000 (13:23 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 15 Apr 2013 21:38:40 +0000 (14:38 -0700)
commit8e4e1713e4978447c5f799aa668dcc6d2cb0dee9
treedc0c2e05b677183d617d74020fa9d1ed28691102
parentb4f9e8cdc82e4a07c3ca50395af5800a6229363e
openvswitch: Simplify datapath locking.

Currently OVS uses combination of genl and rtnl lock to protect
datapath state.  This was done due to networking stack locking.
But this has complicated locking and there are few lock ordering
issues with new tunneling protocols.
Following patch simplifies locking by introducing new ovs mutex
and now this lock is used to protect entire ovs state.

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
net/openvswitch/dp_notify.c
net/openvswitch/vport-internal_dev.c
net/openvswitch/vport-netdev.c
net/openvswitch/vport.c
net/openvswitch/vport.h