The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Rahul Jain <rahul.jain@samsung.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-net@vger.kernel.org" <linux-net@vger.kernel.org>
Cc: ASHWINI KUMAR <k.ashwini@samsung.com>
Subject: [Issue] Bridge Info Details with and without sysfs
Date: Fri, 29 Nov 2013 10:47:08 +0000 (GMT)	[thread overview]
Message-ID: <20751226.176781385722028701.JavaMail.weblogic@epml26> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 3060 bytes --]

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ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

                 reply	other threads:[~2013-11-29 10:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20751226.176781385722028701.JavaMail.weblogic@epml26 \
    --to=rahul.jain@samsung.com \
    --cc=k.ashwini@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox