This series of patches implements the multi-threading bfd/cfm in
ofproto-dpif-monitor module.  This module is in charge of the
execution of periodic functions (like bfd_run, cfm_run,
bfd_send_packets).  For each patch, the change passes all unit
tests, including the bfd/cfm unit tests.

Alex Wang (3):
  ofproto-dpif: Move send_packet() to ofproto-dpif-xlate module.
  ofproto-dpif-monitor: Add ofproto-dpif-monitor module.
  ofproto-dpif-monitor: Move ofproto-dpif-monitor to a single thread.

 lib/bfd.c                      |    4 +-
 lib/timeval.c                  |   20 ++++
 lib/timeval.h                  |    4 +
 ofproto/automake.mk            |    2 +
 ofproto/ofproto-dpif-monitor.c |  254 ++++++++++++++++++++++++++++++++++++++++
 ofproto/ofproto-dpif-monitor.h |   29 +++++
 ofproto/ofproto-dpif-xlate.c   |  111 +++++++++++++++++-
 ofproto/ofproto-dpif-xlate.h   |   21 +++-
 ofproto/ofproto-dpif.c         |  112 ++----------------
 ofproto/ofproto-dpif.h         |    1 +
 tests/bfd.at                   |   54 +++++----
 tests/ofproto-dpif.at          |   58 +++++++++
 12 files changed, 543 insertions(+), 127 deletions(-)
 create mode 100644 ofproto/ofproto-dpif-monitor.c
 create mode 100644 ofproto/ofproto-dpif-monitor.h

-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to