Don't allow the learning switch to send packets back out the incoming port.
authorJustin Pettit <jpettit@nicira.com>
Wed, 30 Jul 2008 06:43:58 +0000 (23:43 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 30 Jul 2008 07:22:52 +0000 (00:22 -0700)
commit0a3d4ba3a48cb679ff366298a2e8b75214646e75
tree71e2805542601bd7d7632190407ce3bbd76f948c
parent5147d004899fb7979878ff59b879b88f1c66d0bf
Don't allow the learning switch to send packets back out the incoming port.

The learning switch functionality included in OpenFlow will send packets
out the port they arrived on if the learned destination is from that port.
This causes problems when newer switches flood packets for destinations they
don't know and OpenFlow reinjects packets back into the network.  The correct
behavior is to just drop the packet.
lib/learning-switch.c