stp: Make stp-disabled port forward stp bpdu packets.
authorAlex Wang <alexw@nicira.com>
Wed, 16 Jul 2014 01:52:19 +0000 (18:52 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 17 Jul 2014 06:36:35 +0000 (23:36 -0700)
commit2e8a3d9beb7c29626faafab1eaed41db6e407ce3
treeb96f5d61a246a7eceb7f378b341ce34147a22464
parentb25501eb28ca1bb68bb68f3dcdccabe5e1c68811
stp: Make stp-disabled port forward stp bpdu packets.

Commit 0d1cee123a84 (stp: Fix bpdu tx problem in listening state)
makes ovs drop the stp bpdu packets if stp is not enabled on the
input port.  However, when pif bridge is used and stp is enabled
on the integration bridge.  The flow translation of stp bpdu
packets will go through a level of resubmission which changes
the input port to the corresponding peer port.  Since, the
patch port on the pif bridge does not have stp enabled, the
flow translation will drop the bpdu packets.

This commit fixes the issue by making ovs forward stp bpdu packets
on stp-disabled port.

VMware-BZ: #1284695

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
lib/stp.c
lib/stp.h
ofproto/ofproto-dpif-xlate.c