Commit 33158a1
Justin Pettit
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>1 parent 3581c12 commit 33158a1
2 files changed
Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
| |||
4858 | 4868 | | |
4859 | 4869 | | |
4860 | 4870 | | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
4861 | 4876 | | |
4862 | 4877 | | |
4863 | 4878 | | |
| |||
5171 | 5186 | | |
5172 | 5187 | | |
5173 | 5188 | | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
5174 | 5194 | | |
5175 | 5195 | | |
5176 | 5196 | | |
| |||
5206 | 5226 | | |
5207 | 5227 | | |
5208 | 5228 | | |
| 5229 | + | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
5209 | 5235 | | |
5210 | 5236 | | |
5211 | 5237 | | |
| |||
5299 | 5325 | | |
5300 | 5326 | | |
5301 | 5327 | | |
5302 | | - | |
| 5328 | + | |
| 5329 | + | |
5303 | 5330 | | |
5304 | 5331 | | |
5305 | 5332 | | |
| |||
5333 | 5360 | | |
5334 | 5361 | | |
5335 | 5362 | | |
5336 | | - | |
| 5363 | + | |
| 5364 | + | |
5337 | 5365 | | |
5338 | 5366 | | |
5339 | 5367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
463 | 493 | | |
464 | 494 | | |
465 | 495 | | |
| |||
0 commit comments