[PATCH 3/3] bonding: fix locking during alb failover and slave removal

2008-01-07 Thread Jay Vosburgh
functions calling it. Updated header comments in affected functions to reflect proper reality of locking requirements. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_alb.c | 18 -- drivers/net/bonding/bond_main.c | 14 -- 2 files chang

[PATCH 1/3] bonding: fix locking in sysfs primary/active selection

2008-01-07 Thread Jay Vosburgh
her locks. This is so that the lower level mode-specific functions (notably for balance-alb mode) can release locks down to just rtnl in order to call, e.g., dev_set_mac_address with the locks it expects (rtnl only). Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> Signed-off-by: Andy Gospodare

[PATCH 0/3] bonding: 3 fixes for 2.6.24

2008-01-07 Thread Jay Vosburgh
Fix all call paths into alb_fasten_mac_swap to hold only RTNL. Eliminates deadlock and silences warnings. Patches are against the current netdev-2.6#upstream branch. Please apply for 2.6.24. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL

Re: [Bugme-new] [Bug 9543] New: RTNL: assertion failed at net/ipv6/addrconf.c (2164)/RTNL: assertion failed at net/ipv4/devinet.c (1055)

2008-01-07 Thread Jay Vosburgh
t;> >> >> >> >>On Fri, 14 Dec 2007, Andy Gospodarek wrote: >> >> >> >>>On Fri, Dec 14, 2007 at 07:57:42PM +0100, Krzysztof Oledzki wrote: >> >>>> >> >>>> >> >>>>On Fri, 14 Dec 2007, Andy Gosp

Re: [PATCH 2.6.23.12] net/bonding: option to specify initial bond interface number

2008-01-03 Thread Jay Vosburgh
Jari Takkala <[EMAIL PROTECTED]> wrote: >On Wednesday, January 02, 2008 17:24, Jay Vosburgh wrote: >> What advantage does this have over: >> >> # echo +bond5 > /sys/class/net/bonding_masters >> >> which will create a new bonding maste

Re: [PATCH 2.6.23.12] net/bonding: option to specify initial bond interface number

2008-01-02 Thread Jay Vosburgh
already-loaded driver? -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Bugme-new] [Bug 9543] New: RTNL: assertion failed at net/ipv6/addrconf.c (2164)/RTNL: assertion failed at net/ipv4/devinet.c (1055)

2007-12-12 Thread Jay Vosburgh
her locks. This is so that the lower level mode-specific functions can release locks down to just rtnl in order to call, e.g., dev_set_mac_address with the locks it expects (rtnl only). Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> diff --git a/drivers/net/bonding/bond_sysfs.c b/driver

[PATCH 5/8] bonding: Allow setting and querying xmit policy regardless of mode

2007-12-06 Thread Jay Vosburgh
igned-off-by: Ferenc Wagner <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_sysfs.c | 21 +++-- 1 files changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.

[PATCH 2/8] bonding: Return nothing for not applicable values

2007-12-06 Thread Jay Vosburgh
to return nothing at all if not applicable, not even a '\n'. I find this behaviour more usual, more useful, more efficient and shorter to code from both sides. Signed-off-by: Ferenc Wagner <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/

[PATCH 3/8] bonding: Purely cosmetic: rename a local variable

2007-12-06 Thread Jay Vosburgh
From: Wagner Ferenc <[EMAIL PROTECTED]> From: Wagner Ferenc <[EMAIL PROTECTED]> Code for rendering multivalue sysfs files occurs three times in this module. Rename 'buffer' to 'buf' in the first, for the sake of consistency. Signed-off-by: Ferenc Wagner &

[PATCH 4/8] bonding: Coding style: break line after the if condition

2007-12-06 Thread Jay Vosburgh
From: Wagner Ferenc <[EMAIL PROTECTED]> From: Wagner Ferenc <[EMAIL PROTECTED]> Adhere to coding style: break line after the if condition Signed-off-by: Ferenc Wagner <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_sysfs.c |

[PATCH 1/8] bonding: Remove trailing NULs from sysfs interface.

2007-12-06 Thread Jay Vosburgh
y also have to swallow back a trailing space. Signed-off-by: Ferenc Wagner <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_sysfs.c | 66 + 1 files changed, 30 insertions(+), 36 deletions(-) diff --git a/

[PATCH 7/8] bonding: Add new layer2+3 hash for xor/802.3ad modes

2007-12-06 Thread Jay Vosburgh
Add new hash for balance-xor and 802.3ad modes. Originally submitted by "Glenn Griffin" <[EMAIL PROTECTED]>; modified by Jay Vosburgh to move setting of hash policy out of line, tweak the documentation update and add version update to 3.2.2. Glenn's ori

[PATCH 6/8] bonding: Fix time comparison

2007-12-06 Thread Jay Vosburgh
From: David Sterba <[EMAIL PROTECTED]> From: David Sterba <[EMAIL PROTECTED]> Use macros for comparing jiffies. Jiffies' wrap caused missed events and hangs. Module reinsert was needed to make bonding work again. Signed-off-by: David Sterba <[EMAIL PROTECTED]> Acked-b

[PATCH 8/8] bonding: Fix race at module unload

2007-12-06 Thread Jay Vosburgh
Fixes a race condition in module unload. Without this change, workqueue events may fire while bonding data structures are partially freed but before bond_close() is invoked by unregister_netdevice(). Update version to 3.2.3. Signed-off-by: Jay Vosburgh <[EMAIL PROTEC

[PATCH 0/8] bonding: Several fixes, new hash mode

2007-12-06 Thread Jay Vosburgh
g and querying xmit policy regardless of mode [PATCH 6/8] bonding: Fix time comparison [PATCH 7/8] bonding: Add new layer2+3 hash for xor/802.3ad modes [PATCH 8/8] bonding: Fix race at module unload -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] -- To unsubscribe

Re: when using arp monitoring with bonding, why use broadcast arps?

2007-12-04 Thread Jay Vosburgh
o have the bond_arp_send() function perform a neigh_lookup() prior to calling arp_create(), and use the result of the lookup (if any) in the arp_create() call. So, no, with the caveat that I haven't tried it, I don't see a reason that bonding couldn't do what you're looking

Re: [PATCH 2/3] net/bonding: Return nothing for not applicable values

2007-11-28 Thread Jay Vosburgh
), and remove the mode test from bonding_store_xmit_hash(). This would be consistent with the way the arp_ip_target option is treated: the actual value is always displayed, even if it is not used, and it is legal to change the value, regardless of the mode. Other than this, I

[PATCH] bonding: Documentation update

2007-11-13 Thread Jay Vosburgh
PROTECTED]>. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- diff --git a/Documentation/networking/bonding.txt b/Documentation/networking/bonding.txt index 1134062..eda0f06 100644 --- a/Documentation/networking/bonding.txt +++ b/Documentation/networking/bondin

[PATCH] bonding: Fix resource use after free

2007-11-12 Thread Jay Vosburgh
Fix bond_destroy and bond_free_all to not reference the struct net_device after calling unregister_netdevice. Bug and offending change reported by Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- Copying DaveM since Jeff

Re: [PATCH] remove claim balance_rr won't reorder on many to one

2007-11-06 Thread Jay Vosburgh
levels of badness, as it were). Needed to fix a couple "no workee" things first. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PR

[PATCH 0/2] bonding: Two small fixes

2007-11-06 Thread Jay Vosburgh
zeroes. Patches are against linux-2.6, and apply cleanly to netdev-2.6#upstream-linus. Please apply for 2.6.24. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the

[PATCH 2/2] bonding: don't validate address at device open

2007-11-06 Thread Jay Vosburgh
e dev->validate_addr to NULL. The master still can't end up with an invalid address, as the set_mac_address function tests for validity. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[PATCH 1/2] bonding: fix rtnl locking merge error

2007-11-06 Thread Jay Vosburgh
l, and the second correctly acquires and releases rtnl. Bug reported by Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_sysfs.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/

Re: problems with ib-bonding of 2.6.24-rc1

2007-11-05 Thread Jay Vosburgh
-2.6 git kernel, and I'm not seeing the failure you describe. Can you provide some step by step instructions, including the type of system, bonding mode, options, number and type of slaves, etc, to induce the failure? -J --- -Jay Vosburgh, IBM Linux Technology Cente

Re: [PATCH] remove claim balance_rr won't reorder on many to one

2007-10-30 Thread Jay Vosburgh
standard term for what we're talking about here, but it's a Cisco trademark. I'd guess that most switch vendors don't come right out and call their "EtherChannel(tm) compatible" mode exactly that; they call it something else, but it's still meant to be compatibl

Re: Bonding in active-backup mode with arp monitoring on Xen

2007-10-30 Thread Jay Vosburgh
ll work for any peer (some peers may not reply to an ARP with an IP source of all zeros). At first glance, there doesn't seem to be much of a downside, but I'll have to experiment with it a bit to see if the check should be optional or simply removed entirely. -J --- -Jay V

Re: [PATCH] remove claim balance_rr won't reorder on many to one

2007-10-30 Thread Jay Vosburgh
or example, "trunking" is also used to describe a type of switch port, and "aggregation" or "link aggregation" is often used to refer to 802.3ad link aggregation, which is compatible with bonding's 802.3ad mode, but not balance-rr. Thoughts? -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [2.6 patch] bonding/bond_main.c: fix cut'n'paste error

2007-10-24 Thread Jay Vosburgh
Adrian Bunk <[EMAIL PROTECTED]> wrote: >This patch fixes a cut'n'paste error in >commit 1b76b31693d4a6088dec104ff6a6ead54081a3c2. > >Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Please apply. -J Acked-

Re: [PATCH 1/6] Convert bonding timers to workqueues

2007-10-23 Thread Jay Vosburgh
one Signed-off and one Acked). >2) vague subject line. [...] Sorry about that; will keep it in mind next time. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in

Re: [PATCH 1/6] Convert bonding timers to workqueues

2007-10-22 Thread Jay Vosburgh
org); this isn't a feature add or a refactor just for efficiency. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Two small fixes to IPoIB support for bonding:

2007-10-17 Thread Jay Vosburgh
Jay Vosburgh <[EMAIL PROTECTED]> wrote: > 1- copy header_ops from slave to bonding for IPoIB slaves > 2- move release and destroy logic to UNREGISTER from GOING_DOWN > notifier to prevent double release > > Set bonding to version 3.2.1. >-

[PATCH 6/6] Acquire correct locks in alb for promisc change

2007-10-17 Thread Jay Vosburgh
Update ALB mode monitor to hold correct locks (RTNL and nothing else) when calling dev_set_promiscuity. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_alb.c | 19 ++- 1 files

[PATCH 5/6] Convert more locks to _bh, acquire rtnl, for new locking

2007-10-17 Thread Jay Vosburgh
Convert more lock acquisitions to _bh flavor to avoid deadlock with workqueue activity and add acquisition of RTNL in appropriate places. Affects ALB mode, as well as core bonding functions and sysfs. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh &

[PATCH 3/6] Convert miimon to new locking

2007-10-17 Thread Jay Vosburgh
sed). Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 70 -- 1 files changed, 51 insertions(+), 19 deletions(-) diff --git a/drivers/net/bonding/bond_main.

[PATCH 4/6] Convert locks to _bh, rework alb locking for new locking

2007-10-17 Thread Jay Vosburgh
Convert locking-related activity to new & improved system. Convert some lock acquisitions to _bh and rework parts of ALB mode, both to avoid deadlocks with workqueue activity. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]&

[PATCH 1/6] Convert bonding timers to workqueues

2007-10-17 Thread Jay Vosburgh
Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_3ad.c |6 +- drivers/net/bonding/bond_3ad.h |2 +- drivers/net/bonding/bond_alb.c |6 +- drivers/net/bonding/bond_alb.h |2 +- drivers/net/bonding/bond_ma

[PATCH 0/6] bonding workqueue and lock rework

2007-10-17 Thread Jay Vosburgh
lock ordering constraints. These changes were developed and extensively tested by Andy Gospodarek <[EMAIL PROTECTED]> and myself over the last few months. Patches are relative to linux-2.6. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED

[PATCH] Two small fixes to IPoIB support for bonding:

2007-10-17 Thread Jay Vosburgh
1- copy header_ops from slave to bonding for IPoIB slaves 2- move release and destroy logic to UNREGISTER from GOING_DOWN notifier to prevent double release Set bonding to version 3.2.1. --- drivers/net/bonding/bond_main.c | 11 +-- drivers/net/bonding

[PATCH 2/6] Convert balance-rr transmit to new locking

2007-10-17 Thread Jay Vosburgh
eliminates a deadlock introduced by the conversion to work queues. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 25 - drivers/net/bonding/bonding.h |1 + 2 files

[PATCH linux-2.6] bonding: two small fixes for IPoIB support

2007-10-15 Thread Jay Vosburgh
Shoua Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 11 +-- drivers/net/bonding/bonding.h |4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index d

Re: [PATCH V7 0/8] net/bonding: ADD IPoIB support for the bonding driver

2007-10-15 Thread Jay Vosburgh
Jeff Garzik <[EMAIL PROTECTED]> wrote: >Jay Vosburgh wrote: >> Since I see you've just pushed it, do you want a patch to >> correct just the two individual things, or would you rather have new >> patches? > > >On top of what was just pushed, please.

Re: [PATCH V7 0/8] net/bonding: ADD IPoIB support for the bonding driver

2007-10-15 Thread Jay Vosburgh
, do you want a patch to correct just the two individual things, or would you rather have new patches? -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/6] Convert bonding timers to workqueues

2007-10-15 Thread Jay Vosburgh
Jeff Garzik <[EMAIL PROTECTED]> wrote: >Jay Vosburgh wrote: >> Convert bonding timers to workqueues. This converts the various >> monitor functions to run in periodic work queues instead of timers. This >> patch introduces the framework and convers the

Re: [PATCH] IB/ipoib: Bound the net device to the ipoib_neigh structue

2007-10-11 Thread Jay Vosburgh
yncing: Fatal exception in interrupt I haven't investigated this further. I'm using a BCM5704 card; if this isn't a known problem and anyone is curious, I can supply additional info. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECT

[PATCH 5/6] Convert more locks to _bh, acquire rtnl, for new locking

2007-10-10 Thread Jay Vosburgh
Convert more lock acquisitions to _bh flavor to avoid deadlock with workqueue activity and add acquisition of RTNL in appropriate places. Affects ALB mode, as well as core bonding functions and sysfs. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh &

[PATCH 3/6] Convert miimon to new locking

2007-10-10 Thread Jay Vosburgh
sed). Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 70 -- 1 files changed, 51 insertions(+), 19 deletions(-) diff --git a/drivers/net/bonding/bond_main.

[PATCH 6/6] Acquire correct locks in alb for promisc change

2007-10-10 Thread Jay Vosburgh
Update ALB mode monitor to hold correct locks (RTNL and nothing else) when calling dev_set_promiscuity. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_alb.c | 19 ++- 1 files

[PATCH 1/6] Convert bonding timers to workqueues

2007-10-10 Thread Jay Vosburgh
Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_3ad.c |6 +- drivers/net/bonding/bond_3ad.h |2 +- drivers/net/bonding/bond_alb.c |6 +- drivers/net/bonding/bond_alb.h |2 +- drivers/net/bonding/bond_ma

[PATCH 4/6] Convert locks to _bh, rework alb locking for new locking

2007-10-10 Thread Jay Vosburgh
Convert locking-related activity to new & improved system. Convert some lock acquisitions to _bh and rework parts of ALB mode, both to avoid deadlocks with workqueue activity. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]&

[PATCH 2/6] Convert balance-rr transmit to new locking

2007-10-10 Thread Jay Vosburgh
eliminates a deadlock introduced by the conversion to work queues. Signed-off-by: Andy Gospodarek <[EMAIL PROTECTED]> Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 25 - drivers/net/bonding/bonding.h |1 + 2 files

[PATCH 0/6] bonding workqueue and lock rework

2007-10-10 Thread Jay Vosburgh
lock ordering constraints. These changes were developed and extensively tested by Andy Gospodarek <[EMAIL PROTECTED]> and myself over the last few months. Patches are relative to netdev-2.6#upstream. -J --- -Jay Vosburgh, IBM Linux Technology Center,

[REPOST PATCH 9/9] net/bonding: Optionally allow ethernet slaves to keep own MAC

2007-10-09 Thread Jay Vosburgh
s automatically enabled for IB slaves), applicable only to active-backup mode. Includes documentation update. Updates bonding driver version to 3.2.0. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- [ Fixed this copy; the previous posting lost the explan

[PATCH 9/9] net/bonding: Optionally allow ethernet slaves to keep own MAC

2007-10-09 Thread Jay Vosburgh
Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- Documentation/networking/bonding.txt | 33 +++ drivers/net/bonding/bond_main.c | 57 + drivers/net/bonding/bond_sysfs.c | 49 + drivers/net/b

[PATCH 8/9] net/bonding: Destroy bonding master when last slave is gone

2007-10-09 Thread Jay Vosburgh
s are still valid. Destroying the bond when slave_cnt is zero ensures that these functions be used anymore. Signed-off-by: Moni Shoua Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 38 ++ drivers/net/bonding/bo

[PATCH 5/9] net/bonding: Enable IP multicast for bonding IPoIB devices

2007-10-09 Thread Jay Vosburgh
ddress. This is b/c ip_eth_mc_map() is called where for multicast joins taking place after the enslavement another ip_xxx_mc_map() is called (eg ip_ib_mc_map() when the bond type is ARPHRD_INFINIBAND) Signed-off-by: Moni Shoua Signed-off-by: Or Gerlitz Acked-by: Jay Vosburgh <[EMAIL

[PATCH 6/9] net/bonding: Handlle wrong assumptions that slave is always an Ethernet device

2007-10-09 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> bonding sometimes uses Ethernet constants (such as MTU and address length) which are not good when it enslaves non Ethernet devices (such as InfiniBand). Signed-off-by: Moni Shoua Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers

[PATCH 7/9] net/bonding: Delay sending of gratuitous ARP to avoid failure

2007-10-09 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> Delay sending a gratuitous_arp when LINK_STATE_LINKWATCH_PENDING bit in dev->state field is on. This improves the chances for the arp packet to be transmitted. Signed-off-by: Moni Shoua Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- driv

[PATCH 3/9] net/bonding: Enable bonding to enslave non ARPHRD_ETHER

2007-10-09 Thread Jay Vosburgh
by: Or Gerlitz Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 64bfec3..6ae4593

[PATCH 4/9] net/bonding: Enable bonding to enslave netdevices not supporting set_mac_address()

2007-10-09 Thread Jay Vosburgh
ent by bonding when fail-over occurs (this is already done by the bonding code). Signed-off-by: Moni Shoua Signed-off-by: Or Gerlitz Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 87 ++ drivers/net/bonding/bonding.h

[PATCH 1/9] IB/ipoib: Bound the net device to the ipoib_neigh structue

2007-10-09 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> IPoIB uses a two layer neighboring scheme, such that for each struct neighbour whose device is an ipoib one, there is a struct ipoib_neigh buddy which is created on demand at the tx flow by an ipoib_neigh_alloc(skb->dst->neighbour) call. When using the bonding

[PATCH 2/9] IB/ipoib: Verify address handle validity on send

2007-10-09 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> When the bonding device senses a carrier loss of its active slave it replaces that slave with a new one. In between the times when the carrier of an IPoIB device goes down and ipoib_neigh is destroyed, it is possible that the bonding driver will send a packet o

[PATCH 0/9]: bonding support for IPoIB

2007-10-09 Thread Jay Vosburgh
9 patch series providing IPoIB support for bonding This should correct the compile errors from the last posting; it builds ok for me against netdev-2.6 upstream pulled about an hour ago. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To

Re: [PATCH] IB/ipoib: Bound the net device to the ipoib_neigh structue

2007-10-09 Thread Jay Vosburgh
email >> > subject lines did not contain a notion of ordering "[PATCH 1/9] ...". >> > But other than that, the git-send-email went flawlessly. >> >> unfortunately it does not seem to build flawlessly: > >Yeah it doesn't handle Stephen Hemmingers h

Re: [ofa-general] Re: [PATCH V6 0/9] net/bonding: ADD IPoIB support for the bonding driver

2007-10-02 Thread Jay Vosburgh
Jeff Garzik <[EMAIL PROTECTED]> wrote: >Moni Shoua wrote: >> Jay Vosburgh wrote: >>> ACK patches 3 - 9. >>> >>> Roland, are you comfortable with the IB changes in patches 1 and 2? >>> >>> Jeff, when Roland acks patches 1 and 2,

Re: [PATCH V6 0/9] net/bonding: ADD IPoIB support for the bonding driver

2007-09-25 Thread Jay Vosburgh
ACK patches 3 - 9. Roland, are you comfortable with the IB changes in patches 1 and 2? Jeff, when Roland acks patches 1 and 2, please apply all 9. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] Moni Shoua <[EMAIL PROTECTED]>

Re: [PATCH 02/11] IB/ipoib: Notify the world before doing unregister

2007-09-17 Thread Jay Vosburgh
e would make the ipoib module dependent upon having the bonding module loaded (to resolve all of the symbols)? -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 11/11] bonding: Optionally allow ethernet slaves to keep own MAC

2007-09-14 Thread Jay Vosburgh
s automatically enabled for IB slaves), applicable only to active-backup mode. Includes documentation update. Updates bonding driver version to 3.2.0. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> --- Documentation/networking/bonding.txt | 33 +++ drivers

[PATCH 10/11] net/bonding: Destroy bonding master when last slave is gone

2007-09-14 Thread Jay Vosburgh
s are still valid. Destroying the bond when slave_cnt is zero ensures that these functions be used anymore. Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 45 +

[PATCH 08/11] net/bonding: Handle wrong assumptions that slave is always an Ethernet device

2007-09-14 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> bonding sometimes uses Ethernet constants (such as MTU and address length) which are not good when it enslaves non Ethernet devices (such as InfiniBand). Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]>

[PATCH 9/11] net/bonding: Delay sending of gratuitous ARP to avoid failure

2007-09-14 Thread Jay Vosburgh
From: Moni Shoua <[EMAIL PROTECTED]> Delay sending a gratuitous_arp when LINK_STATE_LINKWATCH_PENDING bit in dev->state field is on. This improves the chances for the arp packet to be transmitted. Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh &l

[PATCH 06/11] net/bonding: Enable bonding to enslave netdevices not supporting set_mac_address()

2007-09-14 Thread Jay Vosburgh
ent by bonding when fail-over occurs (this is already done by the bonding code). Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 87 +++

[PATCH 07/11] net/bonding: Enable IP multicast for bonding IPoIB devices

2007-09-14 Thread Jay Vosburgh
ddress. This is b/c ip_eth_mc_map() is called where for multicast joins taking place after the enslavement another ip_xxx_mc_map() is called (eg ip_ib_mc_map() when the bond type is ARPHRD_INFINIBAND) Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]

[PATCH 04/11] IB/ipoib: Verify address handle validity on send

2007-09-14 Thread Jay Vosburgh
packet on a new slave that uses an old ipoib_neigh. This patch detects and prevents this from happenning. Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/infiniband/ulp/ipoib/ipoi

[PATCH 05/11] net/bonding: Enable bonding to enslave non ARPHRD_ETHER

2007-09-14 Thread Jay Vosburgh
PROTECTED]> Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/net/bonding/bond_main.c | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/drivers/net/bonding/bond_main

[PATCH 01/11] IB/ipoib: Export call to call_netdevice_notifiers and add new private flag

2007-09-14 Thread Jay Vosburgh
Both changes are used in bonding slaves that wish to inform the bonding master about coming detachment. Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- include/linux/if.h |1 + net/core/dev.c |1 + 2 files changed, 2 insertio

[PATCH 00/11] IPoIB support for bonding

2007-09-14 Thread Jay Vosburgh
Following is patch set to provide IPoIB support for bonding in active-backup mode. Patches 1 - 10 were originally posted by Moni Shoua <[EMAIL PROTECTED]>. The changes look reasonable to me, but others (for IB and net/core changes) probably need to ack. Patch 11 modifies the IB "

[PATCH 03/11] IB/ipoib: Bound the net device to the ipoib_neigh structue

2007-09-14 Thread Jay Vosburgh
ighbour dev one, when n->dev->flags has the IFF_MASTER bit set. Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Signed-off-by: Or Gerlitz <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/infiniband/ulp/ipoib/ipoib.h |4 +++- drivers/

[PATCH 02/11] IB/ipoib: Notify the world before doing unregister

2007-09-14 Thread Jay Vosburgh
en the IPoIB net device is a slave of a bonding master, let the master know that the IPoIB device is about to unregister (but before calling unregister). Signed-off-by: Moni Shoua <[EMAIL PROTECTED]> Acked-by: Jay Vosburgh <[EMAIL PROTECTED]> --- drivers/infiniband/ulp/ipoib/i

Re: [git patches] net driver fixes

2007-09-14 Thread Jay Vosburgh
but HEA is part of that, so it's probably got the answers you're looking for. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [git patches] net driver fixes

2007-09-14 Thread Jay Vosburgh
r type of function, and passing the carrier state of the "external switch port" to the internal port. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] bonding: update some distro-specific documentation

2007-09-12 Thread Jay Vosburgh
y >+fi >+IFS=$OLDIFS; > done > > /sbin/ip link set dev ${DEVICE} up That looks like it should do the right thing, although I didn't actually try it. The other bonding sysfs thingies that use the "+" type of syntax don't appear in B

Re: error(s) in 2.6.23-rc5 bonding.txt ?

2007-09-07 Thread Jay Vosburgh
rr >> isn't much the rage these days). > >Are you OK with that block of text simply being yanked? Mmm... I'm an easy sell for a "usually" or other suitable caveat added in strategic places (avoiding absolute statements and all that). The text does reflect the resu

Re: error(s) in 2.6.23-rc5 bonding.txt ?

2007-09-07 Thread Jay Vosburgh
h multiple 100Mb devices feeding either other sets of 100Mb devices or single gigabit devices. I'm willing to believe that things have changed, and an N feeding into one configuration can reorder, but I haven't seen it (or really looked for it; balance-rr isn't much the rage these days).

Re: [PATCH] bonding: update some distro-specific documentation

2007-09-07 Thread Jay Vosburgh
ultiple instances of the arp_ip_target option; it doesn't work to put multiple IP addresses as in the module option (i.e., "arp_ip_target=10.0.0.1,10.0.0.2"). This is necessary because ifup-eth isn't adding the "+" when it translates the option for use with

Re: [ofa-general] Re: [PATCH V4 10/10] net/bonding: Destroy bonding master when last slave is gone

2007-08-29 Thread Jay Vosburgh
Moni Shoua <[EMAIL PROTECTED]> wrote: >Jay Vosburgh wrote: >> Moni Shoua <[EMAIL PROTECTED]> wrote: >> >>> When bonding enslaves non Ethernet devices it takes pointers to functions >>> in the module that owns the slaves. In this case it becomes uns

Re: [PATCH V4 10/10] net/bonding: Destroy bonding master when last slave is gone

2007-08-28 Thread Jay Vosburgh
tic change I'd rather not introduce if it's not necessary. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH V4 8/10] net/bonding: Handlle wrong assumptions that slave is always an Ethernet device

2007-08-28 Thread Jay Vosburgh
bond_dev->hard_header_len); Since non-IB bonding masters are run through ether_setup, which sets hard_header_len to ETH_HLEN, the max() is probably unnecessary, and I think this could just be bond_dev->hard_header_len. -J --- -Jay Vosburgh, IBM Linux Technol

Re: [PATCH 1/1] bonding: eliminate RTNL assertion spew

2007-08-15 Thread Jay Vosburgh
ules is fairly invovled. Andy and I have been through several iterations of a "final" patch, and we keep finding regressions. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev&q

Re: [PATCH V3 7/7] net/bonding: Delay sending of gratuitous ARP to avoid failure

2007-07-30 Thread Jay Vosburgh
=== >--- net-2.6.orig/drivers/net/bonding/bonding.h 2007-07-25 15:20:10.0 >+0300 >+++ net-2.6/drivers/net/bonding/bonding.h 2007-07-26 18:42:43.652087660 >+0300 >@@ -203,6 +203,7 @@ struct bonding { > struct vlan_group *vlgrp; > struct packet_type arp_mon_pt; > s8 do_set_mac_addr; >+ int send_grat_arp; This need not be a full int, and (this applies to do_set_mac_addr, also) could probably be squeezed into gaps already existing within the struct bonding somewhere. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] bonding / ipv6: no addrconf for slaves separately from master

2007-07-09 Thread Jay Vosburgh
r its usage of IFF_SLAVE, but I did not test it. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 6287ffb..2bb70e0 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1390

[PATCH] bonding: Fix use after free in unregister path

2007-06-19 Thread Jay Vosburgh
gger a NULL pointer dereference in sysfs. I was not able to induce the failure with the non-sysfs code path, but for consistency I updated that code as well. I also did some testing of the bonding /proc file being open while the bond is being deleted, and didn't see any problems th

[PATCH UPDATED] bonding: Fix 802.3ad no carrier on "no partner found" instance

2007-06-13 Thread Jay Vosburgh
ually configured to be non-aggregatable) are enabled to operate as individual IEEE 802.3 links." Bug reported by Laurent Chavey <[EMAIL PROTECTED]>. This patch is an updated version of his patch that changes the wording of commentary and adds an update to the driver version. Si

Re: [PATCH] Fix race condition about network device name allocation

2007-06-13 Thread Jay Vosburgh
gger a NULL pointer dereference in sysfs. I was not able to induce the failure with the non-sysfs code path, but for consistency I updated that code as well. I also did some testing of the bonding /proc file being open while the bond is being deleted, and didn't see any problems th

Re: [PATCH 2.6.21.3] bonding: Fix 802.3ad no carrier on "no partner found" instance

2007-06-01 Thread Jay Vosburgh
Jeff, please apply wherever seems appropriate. It is a bug fix, but for a pretty obscure bit of standards compliance. Signed-off-by: Jay Vosburgh <[EMAIL PROTECTED]> -J Laurent Chavey <[EMAIL PROTECTED]> wrote: >Remove the requirement to have at least one con

Re: [PATCH]: bonding: Fix 802.3ad no carrier on "no partner found" instance

2007-06-01 Thread Jay Vosburgh
Laurent Chavey <[EMAIL PROTECTED]> wrote: >On 6/1/07, Jay Vosburgh <[EMAIL PROTECTED]> wrote: [...] >> Prior to the change in question, the carrier state of the master >> device was always on, regardless of the state of the slaves (so even if >> things di

Re: [PATCH]: bonding: Fix 802.3ad no carrier on "no partner found" instance

2007-06-01 Thread Jay Vosburgh
cking the standard to see what it says, but I'm also curious if this has some real-world impact, or is just something you happened across? -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Bonding-devel] [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1

2007-05-10 Thread Jay Vosburgh
ything (e.g., enslaving a VLAN device), but covers most of the usual trouble cases. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index 7e03f41..c8394a0 100644 --- a/drivers/net/b

Re: Bonding two 802.1q interfaces triggers "sleeping function called from invalid context"

2007-05-01 Thread Jay Vosburgh
/0xa7 [8021q] >> [] bond_update_speed_duplex+0x88/0xd7 [bonding] >> [] bond_mii_monitor+0x0/0x403 [bonding] >> [] bond_mii_monitor+0x373/0x403 [bonding] > >Jay Vosburgh and I have been working on something to address this and >other issues related to possible sleeping activiti

Re: r8169 ethernet bonding problems

2007-04-27 Thread Jay Vosburgh
ese to test with, I'm just looking at the source and observing that dev_addr is only ever referenced in the probe function, and that's only to read in the MAC from the device. -J --- -Jay Vosburgh, IBM Linux Technology Center, [EMAIL PROTECTED] - To unsubscribe from this l

<    1   2   3   4   5   >