Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351279
b: refs/heads/master
c: 2eea05b
h: refs/heads/master
i:
  351277: 66f7f1c
  351275: 654eadb
  351271: f7a754c
  351263: ebf9619
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Jan 4, 2013
1 parent b3a97b7 commit 3648c87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 49bd8fb0b18944fc0b6b11d999619d3687c3914a
refs/heads/master: 2eea05b0de6bb83dc07ddd5154b1baccba773e6a
11 changes: 7 additions & 4 deletions trunk/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,17 @@ static struct net_device *get_iff_from_mac(struct adapter *adapter,
struct net_device *dev = adapter->port[i];

if (!memcmp(dev->dev_addr, mac, ETH_ALEN)) {
rcu_read_lock();
if (vlan && vlan != VLAN_VID_MASK) {
rcu_read_lock();
dev = __vlan_find_dev_deep(dev, vlan);
rcu_read_unlock();
} else if (netif_is_bond_slave(dev)) {
while (dev->master)
dev = dev->master;
struct net_device *upper_dev;

while ((upper_dev =
netdev_master_upper_dev_get_rcu(dev)))
dev = upper_dev;
}
rcu_read_unlock();
return dev;
}
}
Expand Down

0 comments on commit 3648c87

Please sign in to comment.