ofproto-dpif: Fake-up OFPP_NONE input bundle for mirroring and normal.
authorJustin Pettit <jpettit@nicira.com>
Tue, 3 Jan 2012 21:34:20 +0000 (13:34 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 5 Jan 2012 00:16:34 +0000 (16:16 -0800)
commit33158a18daadcb4c7eaddb226fcfbdcca54539b7
tree115f92d6ed378b943529129be921ea674545d6b0
parent3581c12cd965230588d6e0c222944d43f8f1ef41
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@nicira.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at