datapath: Adopt Generic Netlink-compatible locking.
authorBen Pfaff <blp@nicira.com>
Wed, 26 Jan 2011 20:49:06 +0000 (12:49 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:08:42 +0000 (21:08 -0800)
commited099e921e30d3720c5ad7d1b4f911bb23911bf3
tree461d64f4f9aba073a032f5667e5683c0d9cdfb4f
parent057dd6d279c20e88f98bbe8328383564391bbc8f
datapath: Adopt Generic Netlink-compatible locking.

The kernel Generic Netlink layer always holds a mutex (genl_lock) when it
invokes callbacks, so that means that there is no point in having
per-datapath mutexes or a separate vport lock.  This commit removes them.

This commit breaks support for Linux before 2.6.35 because it calls
genl_lock(), which wasn't exported before that version.  That problem will
be fixed once the whole userspace interface transitions to Generic
Netlink a few commits from now.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/datapath.h
datapath/dp_notify.c
datapath/linux-2.6/Modules.mk
datapath/linux-2.6/compat-2.6/include/linux/genetlink.h [new file with mode: 0644]
datapath/table.c
datapath/vport.c