Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351278
b: refs/heads/master
c: 49bd8fb
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jan 4, 2013
1 parent 66f7f1c commit b3a97b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 74fdd93fbcc16522406f65c564ea104490ad4908
refs/heads/master: 49bd8fb0b18944fc0b6b11d999619d3687c3914a
9 changes: 6 additions & 3 deletions trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,12 @@ static void netpoll_poll_dev(struct net_device *dev)

if (dev->flags & IFF_SLAVE) {
if (ni) {
struct net_device *bond_dev = dev->master;
struct net_device *bond_dev;
struct sk_buff *skb;
struct netpoll_info *bond_ni = rcu_dereference_bh(bond_dev->npinfo);
struct netpoll_info *bond_ni;

bond_dev = netdev_master_upper_dev_get_rcu(dev);
bond_ni = rcu_dereference_bh(bond_dev->npinfo);
while ((skb = skb_dequeue(&ni->arp_tx))) {
skb->dev = bond_dev;
skb_queue_tail(&bond_ni->arp_tx, skb);
Expand Down Expand Up @@ -815,7 +818,7 @@ int netpoll_setup(struct netpoll *np)
return -ENODEV;
}

if (ndev->master) {
if (netdev_master_upper_dev_get(ndev)) {
np_err(np, "%s is a slave device, aborting\n", np->dev_name);
err = -EBUSY;
goto put;
Expand Down

0 comments on commit b3a97b7

Please sign in to comment.