Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31516
b: refs/heads/master
c: 29315e8
h: refs/heads/master
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Jun 30, 2006
1 parent 628a9f2 commit f45461a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3820c3f3e41786322c0bb225b9c77b8deff869d1
refs/heads/master: 29315e8770c20cbfe607ad962d87867115a44555
12 changes: 12 additions & 0 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8738,6 +8738,9 @@ 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);

tg3_full_lock(tp, 0);

tp->vlgrp = grp;
Expand All @@ -8746,16 +8749,25 @@ static void tg3_vlan_rx_register(struct net_device *dev, struct vlan_group *grp)
__tg3_set_rx_mode(dev);

tg3_full_unlock(tp);

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

static void tg3_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid)
{
struct tg3 *tp = netdev_priv(dev);

if (netif_running(dev))
tg3_netif_stop(tp);

tg3_full_lock(tp, 0);
if (tp->vlgrp)
tp->vlgrp->vlan_devices[vid] = NULL;
tg3_full_unlock(tp);

if (netif_running(dev))
tg3_netif_start(tp);
}
#endif

Expand Down

0 comments on commit f45461a

Please sign in to comment.