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	1263863259.24463.170.camel@rendellf
X-Sylpheed-End-Special-Headers: 1
Date: Mon, 18 Jan 2010 17:19:08 -0800
From: Andrew Sharp <andy.sharp@lsi.com>
To: Rendell Fong <Rendell.Fong@lsi.com>
Subject: Re: bonding driver config
Message-ID: <20100118171908.03c66d04@ripper.onstor.net>
In-Reply-To: <1263863259.24463.170.camel@rendellf>
References: <1263863259.24463.170.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

It uses sysfs, not procfs.  Remember also that I'm working 2.6.32...

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

> 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?

> 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
