[ovs-dev] [threads 00/17] preparation for threading

Ben Pfaff blp at nicira.com
Wed Jun 5 20:05:05 UTC 2013


These patches prepare some of the Open vSwitch library code for
threading.  All of these patches have been previously posted as
parts of shorter series, but none of them has yet attracted a
review.   I am re-posting them to get them into patchwork.

Ben Pfaff (17):
  signals: Make thread-safe.
  process: Remove process_run(), process_run_capture(), and related
    code.
  process: Remove unused features from process_start().
  process: Make signal handling thread-safe.
  process: Add thread safety comments.
  lockfile: Remove calls to
    time_disable_restart()/time_enable_restart().
  timeval: Do not block SIGALRM around setting 'deadline' in
    time_alarm().
  timeval: Remove time_disable_restart(), time_enable_restart()
    functions.
  netdev-vport: Make 'iface' non-static in tunnel_get_status().
  route-table: Make 'rtnl_sock' and 'attrs' local variables non-static.
  rtnetlink-link: Make 'attrs' local variable non-static.
  odp-util: Avoid returning static data in ovs_key_attr_to_string().
  ofp-print: Avoid returning static data.
  ofp-util: Don't return static data in
    ofputil_packet_in_reason_to_string().
  dpif-netdev: Don't run port names through
    netdev_vport_get_dpif_port().
  netdev-vport: Make netdev_vport_get_dpif_port() code less confusing.
  netdev-vport: Don't return static data in
    netdev_vport_get_dpif_port().

 lib/dpif-linux.c        |    4 +-
 lib/dpif-netdev.c       |   18 ++-
 lib/lockfile.c          |    2 -
 lib/netdev-vport.c      |   25 ++-
 lib/netdev-vport.h      |    7 +-
 lib/odp-util.c          |   31 +++--
 lib/ofp-actions.c       |    5 +-
 lib/ofp-print.c         |   56 +++++---
 lib/ofp-util.c          |   19 ++-
 lib/ofp-util.h          |    6 +-
 lib/process.c           |  380 +++++------------------------------------------
 lib/process.h           |   28 ++--
 lib/route-table.c       |    8 +-
 lib/rtnetlink-link.c    |    4 +-
 lib/signals.c           |   66 ++-------
 lib/signals.h           |    4 -
 lib/timeval.c           |   34 -----
 lib/timeval.h           |    2 -
 ofproto/ofproto-dpif.c  |   17 ++-
 ovsdb/ovsdb-server.c    |    9 +-
 vswitchd/ovs-vswitchd.c |    1 -
 21 files changed, 208 insertions(+), 518 deletions(-)

-- 
1.7.2.5




More information about the dev mailing list