AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:
CFG:
PT:0
S:andy.sharp@lsi.com
RQ:
SSV:mhbs.lsil.com
NSV:
SSH:
R:<Rendell.Fong@lsi.com>
MAID:2
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/LSI/INBOX	0	1263864931.24463.173.camel@rendellf
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 19 Jan 2010 14:06:28 -0800
From: Andrew Sharp <andy.sharp@lsi.com>
To: Rendell Fong <Rendell.Fong@lsi.com>
Subject: Re: bonding driver config
Message-ID: <20100119140628.743cbfa4@ripper.onstor.net>
In-Reply-To: <1263864931.24463.173.camel@rendellf>
References: <1263863259.24463.170.camel@rendellf>
	<20100118171908.03c66d04@ripper.onstor.net>
	<1263864931.24463.173.camel@rendellf>
Organization: LSI
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Mon, 18 Jan 2010 18:35:31 -0700 Rendell Fong <Rendell.Fong@lsi.com>
wrote:

> On Mon, 2010-01-18 at 18:19 -0700, Andrew Sharp wrote:
> > It uses sysfs, not procfs.  Remember also that I'm working 2.6.32...
>=20
> So, I'm not going to deal with it for now.

Yeah, just something to keep in mind.  I remember now where I was
reading about it: Documentation/.../bonding.txt.

> >=20
> > On Mon, 18 Jan 2010 18:07:39 -0700 Rendell Fong
> > <Rendell.Fong@lsi.com> wrote:
> >=20
> > > Andy,
> > >=20
> > > How did you determine that the bonding driver can be configured
> > > via the proc fs?
> > >=20
> > > >From what I have seen, the code doesn't handle write ops.  The
> > > >following
> > > table is what is registered during initialization.  And it only
> > > dumps the current device configuration.
> > >=20
> > > =20
> > > bond_main.c:
> > >=20
> > > static const struct file_operations bond_info_fops =3D {=02  <-- what
> > > is that?
> >=20
>=20
> Extra cut and paste characters complements of my Linux workstation.
>=20
> > > X=E2=80=A0X   <--- Eew!
> > > =11   <--- Double-Eew!
> > > \
> > > =11s =3D {
> > >     .owner   =3D THIS_MODULE,
> > >     .open    =3D bond_info_open,
> > >     .read    =3D seq_read,
> > >     .llseek  =3D seq_lseek,
> > >     .release =3D seq_release,
> > > };
> > >=20
> > >=20
> > > root@rf-tuxrx:/proc/net/bonding# cat bond0
> > > Ethernet Channel Bonding Driver: v3.1.3 (June 13, 2007)
> > >=20
> > > Bonding Mode: load balancing (xor)
> > > Transmit Hash Policy: layer2 (0)
> > > MII Status: down
> > > MII Polling Interval (ms): 0
> > > Up Delay (ms): 0
> > > Down Delay (ms): 0
> > >=20
> > >=20
> > >=20
> > > Also, I need will need to change the default number of devices
> > > (1->2) and mode (from round-robin to 802.3AD).=20
> > >=20
> > >=20
> > > =3D=3D=3D=3D //depot/tuxrx/linux/kernel/linux-
> > > mips-2.6/drivers/net/bonding/bond_main.c#1
> > > - /homes/rendellf/tuxrx/linux/kernel/linux-
> > > mips-2.6/drivers/net/bonding/bond_main.c =3D=3D=3D=3D
> > > 148c148
> > > < static int bond_mode  =3D BOND_MODE_ROUNDROBIN;
> > > ---
> > > > static int bond_mode  =3D BOND_MODE_8023AD;
> > >=20
> > >=20
> > > Thanks,
> > > Rendell
> > >=20
>=20
