[ovs-git] Open vSwitch: datapath: Use exact lookup for flow_get and flow_del. (branch-2.0)

dev at openvswitch.org dev at openvswitch.org
Tue Jul 1 01:04:31 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, branch-2.0 has been updated
       via  8f037d1f76033d6398282b1fcb825b0d6c170402 (commit)
      from  3604fabbf965139e0064d7beca4dae4dd73f3497 (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 8f037d1f76033d6398282b1fcb825b0d6c170402
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=8f037d1f76033d6398282b1fcb825b0d6c170402
Author: Alex Wang <alexw at nicira.com>
		
datapath: Use exact lookup for flow_get and flow_del.
		
Due to the race condition in userspace, there is chance that two
overlapping megaflows could be installed in datapath.  And this
causes userspace unable to delete the less inclusive megaflow flow
even after it timeout, since the flow_del logic will stop at the
first match of masked flow.

This commit fixes the bug by making the kernel flow_del and flow_get
logic check all masks in that case.

Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Andy Zhou <azhou at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>


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

Summary of changes:
 datapath/datapath.c |   12 ++++++++----
 datapath/flow.c     |   33 +++++++++++++++++++--------------
 datapath/flow.h     |    4 ++--
 3 files changed, 29 insertions(+), 20 deletions(-)


hooks/post-receive
-- 
Open vSwitch


More information about the git mailing list