[ovs-git] Open vSwitch: bridge: Refactor the 'Instant' stats logic. (master)

dev at openvswitch.org dev at openvswitch.org
Mon Apr 28 05:02:59 UTC 2014


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  6a5f9a8fbdfa85795101b46ee1047dfd2b1007c6 (commit)
       via  cfc50ae514f805dcd9c14589f21158185424daf6 (commit)
      from  1335a8d578b03e276294b32df9702c2562705f22 (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 6a5f9a8fbdfa85795101b46ee1047dfd2b1007c6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6a5f9a8fbdfa85795101b46ee1047dfd2b1007c6
Author: Alex Wang <alexw at nicira.com>
		
bridge: Refactor the 'Instant' stats logic.
		
This commit refactors the 'Instant' stats related logic in bridge.c
by moving it into bridge_run().

This change brings the following effects:

1. bridge.c will wait on the global connectivity sequence number when
   there is no pending instant stats transaction.  and the main thread
   will no longer be waken up every 100 ms for 'Instant' stats check.
   the related overhead is eliminated.

2. the netdev's sequence number is used to avoid updating unchanged netdev
   status.  so, the update is more efficient.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Joe Stringer <joestringer at nicira.com>


commit cfc50ae514f805dcd9c14589f21158185424daf6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=cfc50ae514f805dcd9c14589f21158185424daf6
Author: Alex Wang <alexw at nicira.com>
		
ofproto-dpif: Use sequence number to wake up main thread for packet-in I/O.
		
This commit adds per 'struct ofproto_dpif' sequence number for
packet-in I/O.  Whenever ofproto_dpif_send_packet_in() is called,
the calling thread will change the sequence number to wake up the
main thread.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Joe Stringer <joestringer at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 ofproto/ofproto-dpif.c |   17 +++
 vswitchd/bridge.c      |  275 ++++++++++++++++++++++--------------------------
 2 files changed, 143 insertions(+), 149 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list