Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134781
b: refs/heads/master
c: 844b3ee
h: refs/heads/master
i:
  134779: 8b8300b
v: v3
  • Loading branch information
Matt Carlson authored and David S. Miller committed Feb 27, 2009
1 parent 7fcc298 commit 9b8d314
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: 7e5856bd9644e2299adbf5d0a8916f9cc56f1f36
refs/heads/master: 844b3eed8a9efffa4225c811b989c8ff41691a78
11 changes: 7 additions & 4 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9896,8 +9896,12 @@ static void tg3_vlan_rx_register(struct net_device *dev, struct vlan_group *grp)
{
struct tg3 *tp = netdev_priv(dev);

if (netif_running(dev))
tg3_netif_stop(tp);
if (!netif_running(dev)) {
tp->vlgrp = grp;
return;
}

tg3_netif_stop(tp);

tg3_full_lock(tp, 0);

Expand All @@ -9906,8 +9910,7 @@ static void tg3_vlan_rx_register(struct net_device *dev, struct vlan_group *grp)
/* Update RX_MODE_KEEP_VLAN_TAG bit in RX_MODE register. */
__tg3_set_rx_mode(dev);

if (netif_running(dev))
tg3_netif_start(tp);
tg3_netif_start(tp);

tg3_full_unlock(tp);
}
Expand Down

0 comments on commit 9b8d314

Please sign in to comment.