KVM Test: Update qemu-ifup script to set bridge's forwarding delay to 0.
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.
Signed-off-by Feng Yang <[email protected]>
--- client/tests/kvm/scripts/qemu-ifup | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
client/tests/kvm/scripts/qemu-ifup +1 -0
@@ -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
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 = 0It works.
Also, per Dor's recommendation, set STP to 'off'. Commited with small changes:
http://autotest.kernel.org/changeset/4493
Quoted 14 lines
Signed-off-by Feng Yang <[email protected]>--- client/tests/kvm/scripts/qemu-ifup | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)client/tests/kvm/scripts/qemu-ifup +1
-0@@ -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