Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314999
b: refs/heads/master
c: 700db99
h: refs/heads/master
i:
  314997: fd2a1d8
  314995: d59e7d3
  314991: 46df32f
v: v3
  • Loading branch information
David S. Miller committed Jul 6, 2012
1 parent 7b9fa49 commit 96da5e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2de86f63cfc92f7aaf11e7b9d9f2150946a1622
refs/heads/master: 700db99d0140e9da2a31e08ebd3e1b121691aa26
15 changes: 8 additions & 7 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,15 @@ static int ipoib_mcast_leave(struct net_device *dev, struct ipoib_mcast *mcast)
void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb)
{
struct ipoib_dev_priv *priv = netdev_priv(dev);
struct dst_entry *dst = skb_dst(skb);
struct ipoib_mcast *mcast;
struct neighbour *n;
unsigned long flags;

n = NULL;
if (dst)
n = dst_neigh_lookup_skb(dst, skb);

spin_lock_irqsave(&priv->lock, flags);

if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags) ||
Expand Down Expand Up @@ -715,12 +721,6 @@ void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb)

out:
if (mcast && mcast->ah) {
struct dst_entry *dst = skb_dst(skb);
struct neighbour *n = NULL;

rcu_read_lock();
if (dst)
n = dst_neigh_lookup_skb(dst, skb);
if (n) {
if (!*to_ipoib_neigh(n)) {
struct ipoib_neigh *neigh;
Expand All @@ -735,13 +735,14 @@ void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb)
}
neigh_release(n);
}
rcu_read_unlock();
spin_unlock_irqrestore(&priv->lock, flags);
ipoib_send(dev, skb, mcast->ah, IB_MULTICAST_QPN);
return;
}

unlock:
if (n)
neigh_release(n);
spin_unlock_irqrestore(&priv->lock, flags);
}

Expand Down

0 comments on commit 96da5e2

Please sign in to comment.