[ovs-git] Open vSwitch: dpif-netdev: Implement the API functions to allow multiple handler threads read upcall. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Mar 20 17:33:26 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  63be20bee256f305801c0674b29e5773355d2379 (commit)
       via  1954e6bbcb7dabbbcee3dfc6f0363e32fde255b0 (commit)
      from  6723e8af39e40001f5c141b5ad9a8dfe65459c40 (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 63be20bee256f305801c0674b29e5773355d2379
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=63be20bee256f305801c0674b29e5773355d2379
Author: Alex Wang <alexw at nicira.com>
		
dpif-netdev: Implement the API functions to allow multiple handler threads read upcall.
		
This commit implements the API functions to allow multiple handler
threads read upcall.

Also, this commit removes the handling priority of DPIF_UC_MISS
over DPIF_UC_ACTION.  So, both misses will be put to the same
queue.  The decision is based on the fact that a lot has changed
since the age when flow setup rate is most treasured and starving
all actions in the presence of any flow misses doesn't seem like
a sound balancing solution.

Thusly the current implementation will be put in testing and
investigation for better balancing solution will continue if
there is an issue.

Also note, the introduction and use of flow_hash_5tuple() will
put missed ICMP packets from same source but with different
type/code to different handler queues.  This may cause reordering
of these packets.  For now, we do not count this as a problem.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 1954e6bbcb7dabbbcee3dfc6f0363e32fde255b0
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1954e6bbcb7dabbbcee3dfc6f0363e32fde255b0
Author: Alex Wang <alexw at nicira.com>
		
dpif: Change dpif API to allow multiple handler threads read upcall.
		
This commit changes the API in 'dpif-provider.h' to allow multiple
handler threads call dpif_recv() simultaneously.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/dpif-linux.c              |   21 ++--
 lib/dpif-netdev.c             |  230 ++++++++++++++++++++++++++++++-----------
 lib/dpif-provider.h           |   59 +++++++++--
 lib/dpif.c                    |   70 ++++++++++---
 lib/dpif.h                    |   36 +++++--
 lib/flow.c                    |   19 ++++
 lib/flow.h                    |    1 +
 ofproto/ofproto-dpif-upcall.c |   16 ++-
 ofproto/ofproto-dpif-xlate.c  |    2 +-
 ofproto/ofproto-dpif.c        |    2 +-
 10 files changed, 347 insertions(+), 109 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list