[ovs-git] Open vSwitch: ofproto-dpif: Fake-up OFPP_NONE input bundle for mirroring and normal. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Jan 4 16:16:59 PST 2012


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  33158a18daadcb4c7eaddb226fcfbdcca54539b7 (commit)
       via  3581c12cd965230588d6e0c222944d43f8f1ef41 (commit)
      from  fadc05164086fb289a8db6f71a80e84ec014bc0d (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 33158a18daadcb4c7eaddb226fcfbdcca54539b7
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=33158a18daadcb4c7eaddb226fcfbdcca54539b7
Author: Justin Pettit <jpettit at nicira.com>
		
ofproto-dpif: Fake-up OFPP_NONE input bundle for mirroring and normal.
		
Both mirroring and "normal" processing make use of the input bundle to
perform various sanity checks.  Controller-generated traffic typically
uses an ingress port of OFPP_NONE, which doesn't have a corresponding
input bundle.  This commit fakes one up well enough that mirroring and
"normal" processing succeed.

We looked at creating an actual bundle based on the "real" OFPP_NONE.
This was even uglier, since there were even more special-cases that
needed to be handled, including having to hide it from port queries.

Reported-by: Jesse Gross <jesse at nicira.com>
Signed-off-by: Justin Pettit <jpettit at nicira.com>


commit 3581c12cd965230588d6e0c222944d43f8f1ef41
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=3581c12cd965230588d6e0c222944d43f8f1ef41
Author: Justin Pettit <jpettit at nicira.com>
		
ofproto-dpif: Have lookup_input_bundle() return a bundle.
		
Previously, the function returned an "ofport_dpif", but it makes more
sense to return an "ofbundle".  This will also be helpful in a
forthcoming commit.

Signed-off-by: Justin Pettit <jpettit at nicira.com>


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

Summary of changes:
 ofproto/ofproto-dpif.c |   60 ++++++++++++++++++++++++++++++++---------------
 tests/ofproto-dpif.at  |   30 ++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
Open vSwitch


More information about the git mailing list