lkml.org 
[lkml]   [2013]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[Issue] Bridge Info Details with and without sysfs
Hi list,
While displaying bridge info using brctl command, different results are observed with and without sysfs mounted.
Discrepancy
Bridge info results for following fields
max age bridge max age
hello time bridge hello time
forward delay bridge forward delay
are different.
Snapshot for both the cases
With Sysfs mounted,
-----------------------------------------------------------------------------------------------------------
brctl showstp virbr0
virbr0
bridge id 8000.002454fb6fd3
designated root 8000.002454fb6fd3
root port 0 path cost 0
max age 39.99 bridge max age 39.99
hello time 1.99 bridge hello time 1.99
forward delay 1999.69 bridge forward delay 1999.69
ageing time 299.95
hello timer 0.45 tcn timer 0.00
topology change timer 0.00 gc timer 1996.15
flags

eth0.2 (0)
port id 0000 state forwarding
designated root 8000.002454fb6fd3 path cost 19
designated bridge 8000.002454fb6fd3 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth0.3 (0)
port id 0000 state forwarding
designated root 8000.002454fb6fd3 path cost 19
designated bridge 8000.002454fb6fd3 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
-----------------------------------------------------------------------------------------------------------

without sysfs (using ioctl),
-----------------------------------------------------------------------------------------------------------
sudo umount /sys
brctl showstp virbr0
virbr0
bridge id 8000.002454fb6fd3
designated root 8000.002454fb6fd3
root port 0 path cost 0
max age 39.99 bridge max age 400.00
hello time 1.99 bridge hello time 20.00
forward delay 20000.00 bridge forward delay 1999.69
ageing time 299.95
hello timer 0.10 tcn timer 0.00
topology change timer 0.00 gc timer 1967.80
flags

eth0.2 (1)
port id 8001 state forwarding
designated root 8000.002454fb6fd3 path cost 19
designated bridge 8000.002454fb6fd3 message age timer 0.00
designated port 8001 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
eth0.3 (2)
port id 8002 state forwarding
designated root 8000.002454fb6fd3 path cost 19
designated bridge 8000.002454fb6fd3 message age timer 0.00
designated port 8002 forward delay timer 0.00
designated cost 0 hold timer 0.00
flags
-----------------------------------------------------------------------------------------------------------
This looks to be an issue with either sys interface implementation or ioctl (BRCTL_GET_BRIDGE_INFO) implementation for getting the info?
Any inputs are welcome.
Thanks
-Rahul
\
 
 \ /
  Last update: 2013-11-29 12:21    [W:0.031 / U:1.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site