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:36:00 +0000 (16:36 -0800)
commit2716b6379dc86331330d78b496985e908320ddfa
tree603f3af45a9c25b150e3bb37c55a5252fceea7c7
parenta64d0f34a1adf9d586a64a5fecf829d3f473c4c7
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