Skip to contentSkip to conversation

KVM Test: Update qemu-ifup script to set bridge's forwarding delay to 0.

PATCH In review Feng Yang 2 participants 2 messages May 10, 2010 – May 17, 2010 KVM

lore
Share & tools
lore

Feng Yang

author
#0 lore raw

PATCH 1/1 KVM Test: Update qemu-ifup script to set bridge's forwarding delay to 0.

Our pxe case always fail. The problem is that the bridge takes some time to enter the forwarding state. Before that, packages are simply dropped by the bridge.
If one sets:

$ brctl setfd <bridge> 0 # forward delay = 0

It works.

---
 client/tests/kvm/scripts/qemu-ifup |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
client/tests/kvm/scripts/qemu-ifup +1 -0
index bcd9a7a..3d23fb4 100755
@@ -6,3 +6,4 @@ switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }')
 
 /sbin/ifconfig $1 0.0.0.0 up
 /usr/sbin/brctl addif ${switch} $1
+/usr/sbin/brctl setfd ${switch} 0
Signature · 1 line
1.5.5.6
#1 lore raw
Quoted 7 lines · Feng Yang

Our pxe case always fail. The problem is that the bridge takes some time to enter the forwarding state. Before that, packages are simply dropped by the bridge.
If one sets:

$ brctl setfd <bridge> 0 # forward delay = 0

It works.

Also, per Dor's recommendation, set STP to 'off'. Commited with small changes:

http://autotest.kernel.org/changeset/4493

Quoted 14 lines
---
 client/tests/kvm/scripts/qemu-ifup |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
client/tests/kvm/scripts/qemu-ifup +1 -0
index bcd9a7a..3d23fb4 100755
@@ -6,3 +6,4 @@ switch=$(/usr/sbin/brctl show | awk 'NR==2 { print $1 }')
 
 /sbin/ifconfig $1 0.0.0.0 up
 /usr/sbin/brctl addif ${switch} $1
+/usr/sbin/brctl setfd ${switch} 0