From: Jay Vosburgh <fubar@us...> - 2005-05-16 19:19:32
rajesh prabhu <rajesh.prabhu@...> wrote:
>After I do bonding can I use ethtool to gather the statistics about the
>virtual (bonded) interface.
No. First, older versions of ethtool won't even query a bonding
device (they insist on the device being named "eth"-something). Second,
even with the newer ethtools bonding doesn't have any ethtool_ops
support except for GDRVINFO (ethtool -i). "Newer" ethtool means
released within the last six months or so, as I recall; at any rate, the
latest, version 3, is ok in this regard.
>Will this need changes to the code in bonding.c to support it
>If I have interfaces say eth1 and eth2 having different speeds. I bond them
>and create bond0 as the virtual interface.
>If I use ethtool to fetch information from bond0 interface what speed would it
Well, since this feature isn't implemented, it won't return
anything at present.
What it should return is really dependent upon the bonding mode
in use. I'm undecided as to whether bonding should "add" the bandwidth
of its slaves or not (i.e., a bond of three 100 Mb/sec devices would
report "300"). In such a case, it should only add up the bandwidth of
active slaves. That sounds kind of useful, but since it's difficult in
most cases for a single application to use the entire bandwidth of a
multiple slave aggregate, it might be kind of misleading.
Also, as I recall, the 802.3ad spec requires that all members of
an aggregate have the same speed and duplex.
-Jay Vosburgh, IBM Linux Technology Center, fubar@...
Get latest updates about Open Source Projects, Conferences and News.