|| ||Mitch Williams <firstname.lastname@example.org>|
|| ||email@example.com, firstname.lastname@example.org|
|| ||[PATCH 2.6.13 0/19] Updated bonding sysfs patchset.|
|| ||Mon, 19 Sep 2005 16:46:16 -0700|
This patchset addresses some concerns that Stephen Hemminger noted last
week. The changes are mostly coding style, but we've also removed a
duplicate function for validating dev names, and began using in_aton
instead of parsing IP addresses by hand.
From my previous posting:
The sysfs code contains several changes prompted by our previous posting
of this code, including removal of extraneous (and broken) spinlock code,
and a rework of how sysfs files containing lists are handled.
When loaded, the file bonding_masters appears in /sys/class/net. Reading
this file returns a list of all extant bonds. To create a new bond:
echo +[bond name] > bonding_masters
Likewise, to remove a bond:
echo -[bond name] > bonding_masters
Each bond interface gets a bonding directory in
/sys/class/net/[bond name]/bonding. Most of the files in this directory
are read/write, and the usage is obvious. The slaves and arp_ip_targets
files operate similar to the bonding_masters file, so
echo +eth0 > /sys/class/net/bond0/bonding/slaves
adds eth0 to bond0, and
echo +192.168.0.1 > /sys/class/net/bond0/bonding/arp_ip_targets
adds the given IP address as an ARP target for bond0.
We had hoped to get this code into 2.6.14, but it appears that we've
missed the window for new features. We would, however, like to get this
into the kernel as soon as possible, as we have had requests for this
functionality from several large Linux OEMs.
All of this code has been tested on 2.6.13 by the minions in our test lab.
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html