From: Jeff Garzik <jgarzik@pobox.com>
To: Jay Vosburgh <fubar@us.ibm.com>
Cc: netdev@vger.kernel.org, Moni Shoua <monis@voltaire.com>
Subject: Re: [PATCH 1/9] IB/ipoib: Bound the net device to the ipoib_neigh structue
Date: Mon, 15 Oct 2007 14:22:08 -0400 [thread overview]
Message-ID: <4713AFD0.3080708@pobox.com> (raw)
In-Reply-To: <1191984225129-git-send-email-fubar@us.ibm.com>
Jay Vosburgh wrote:
> From: Moni Shoua <monis@voltaire.com>
>
> 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 driver, neighbours are created by the net stack on behalf
> of the bonding (master) device. On the tx flow the bonding code gets an skb such
> that skb->dev points to the master device, it changes this skb to point on the
> slave device and calls the slave hard_start_xmit function.
>
> Under this scheme, ipoib_neigh_destructor assumption that for each struct
> neighbour it gets, n->dev is an ipoib device and hence netdev_priv(n->dev)
> can be casted to struct ipoib_dev_priv is buggy.
>
> To fix it, this patch adds a dev field to struct ipoib_neigh which is used
> instead of the struct neighbour dev one, when n->dev->flags has the
> IFF_MASTER bit set.
>
> Signed-off-by: Moni Shoua <monis at voltaire.com>
> Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
> Acked-by: Roland Dreier <rdreier@cisco.com>
applied 1-9, yay!
prev parent reply other threads:[~2007-10-15 18:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 2:43 [PATCH 0/9]: bonding support for IPoIB Jay Vosburgh
2007-10-10 2:43 ` [PATCH 1/9] IB/ipoib: Bound the net device to the ipoib_neigh structue Jay Vosburgh
2007-10-10 2:43 ` [PATCH 2/9] IB/ipoib: Verify address handle validity on send Jay Vosburgh
2007-10-10 2:43 ` [PATCH 3/9] net/bonding: Enable bonding to enslave non ARPHRD_ETHER Jay Vosburgh
2007-10-10 2:43 ` [PATCH 4/9] net/bonding: Enable bonding to enslave netdevices not supporting set_mac_address() Jay Vosburgh
2007-10-10 2:43 ` [PATCH 5/9] net/bonding: Enable IP multicast for bonding IPoIB devices Jay Vosburgh
2007-10-10 2:43 ` [PATCH 6/9] net/bonding: Handlle wrong assumptions that slave is always an Ethernet device Jay Vosburgh
2007-10-10 2:43 ` [PATCH 7/9] net/bonding: Delay sending of gratuitous ARP to avoid failure Jay Vosburgh
2007-10-10 2:43 ` [PATCH 8/9] net/bonding: Destroy bonding master when last slave is gone Jay Vosburgh
2007-10-10 2:43 ` [PATCH 9/9] net/bonding: Optionally allow ethernet slaves to keep own MAC Jay Vosburgh
2007-10-15 18:22 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4713AFD0.3080708@pobox.com \
--to=jgarzik@pobox.com \
--cc=fubar@us.ibm.com \
--cc=monis@voltaire.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.