]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13fde9097f462206148c3e2cd080906211412852
treedc0c2e05b677183d617d74020fa9d1ed28691102
parent38f2434b6d5a156340b7dc5884faa4ea42962990
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