datapath: Simplify datapath locking.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 12 Apr 2013 22:57:09 +0000 (15:57 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 12 Apr 2013 22:57:09 +0000 (15:57 -0700)
commitcd2a59e99c8a94b15655e29a4dc100a0dc221568
tree4f4998cade6df71890c0ee6db32eb0ae21354f37
parent55a6ee411eededa4969a05233ced3ed69580c157
datapath: 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>
Acked-by: Jesse Gross <jesse@nicira.com>
13 files changed:
datapath/Modules.mk
datapath/datapath.c
datapath/datapath.h
datapath/dp_notify.c
datapath/genl_exec.c [deleted file]
datapath/genl_exec.h [deleted file]
datapath/linux/Modules.mk
datapath/linux/compat/include/linux/genetlink.h [deleted file]
datapath/vport-gre.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c
datapath/vport.c
datapath/vport.h