[ovs-git] Open vSwitch: datapath: Simplify datapath locking. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Apr 12 23:12:52 UTC 2013

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  cd2a59e99c8a94b15655e29a4dc100a0dc221568 (commit)
       via  55a6ee411eededa4969a05233ced3ed69580c157 (commit)
      from  85f6063580158a46421455aaf8a68d78ff020bde (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cd2a59e99c8a94b15655e29a4dc100a0dc221568
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=cd2a59e99c8a94b15655e29a4dc100a0dc221568
Author: Pravin B Shelar <pshelar at nicira.com>
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 at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>

commit 55a6ee411eededa4969a05233ced3ed69580c157
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=55a6ee411eededa4969a05233ced3ed69580c157
Author: Pravin B Shelar <pshelar at nicira.com>
datapath: Add workqueue API to ovs compat workqueue.
Add work-queue api which are required for next commit.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>


Summary of changes:
 datapath/Modules.mk                             |    2 -
 datapath/datapath.c                             |  286 ++++++++++++++---------
 datapath/datapath.h                             |   26 ++-
 datapath/dp_notify.c                            |   82 +++++--
 datapath/genl_exec.c                            |  147 ------------
 datapath/genl_exec.h                            |   27 ---
 datapath/linux/Modules.mk                       |    1 -
 datapath/linux/compat/include/linux/genetlink.h |   23 --
 datapath/linux/compat/include/linux/workqueue.h |    2 +
 datapath/linux/compat/workqueue.c               |   29 ++-
 datapath/vport-gre.c                            |    4 +-
 datapath/vport-internal_dev.c                   |    6 +
 datapath/vport-netdev.c                         |    8 +-
 datapath/vport.c                                |   27 +--
 datapath/vport.h                                |    4 +-
 15 files changed, 297 insertions(+), 377 deletions(-)
 delete mode 100644 datapath/genl_exec.c
 delete mode 100644 datapath/genl_exec.h
 delete mode 100644 datapath/linux/compat/include/linux/genetlink.h

Open vSwitch

More information about the git mailing list