physical: Improve treatment of localnet non-VLAN logical ports.
authorBen Pfaff <blp@ovn.org>
Sun, 29 Nov 2015 19:48:43 +0000 (11:48 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 5 Jan 2016 00:08:15 +0000 (16:08 -0800)
commitd8ce1d2c92b7f8deb4a1a069bb56359e32086cc8
tree1c5171a64667fc576fe7842da34f199421222558
parent34abaa3deaa430ca0b50453865d2e042a5132165
physical: Improve treatment of localnet non-VLAN logical ports.

Until now, the flow table treated localnet logical ports that have a VLAN
quite differently from those that don't.  The ones without a VLAN were
essentially trunk ports: any packets that came in, that weren't picked off
by a localnet port with a VLAN, were passed to the ones without a VLAN.
This wasn't the intended behavior.

This commit changes behavior to the intended behavior.  Now, localnet ports
without a specific VLAN only receive packets without a VLAN header or those
with VLAN ID 0 (with that header stripped off).

Found by inspection.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
ovn/controller/physical.c