diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 0ea61f7f6203..ce29097cc759 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -9896,8 +9896,12 @@ static void tg3_vlan_rx_register(struct net_device *dev, struct vlan_group *grp) | |||
9896 | { | 9896 | { |
9897 | struct tg3 *tp = netdev_priv(dev); | 9897 | struct tg3 *tp = netdev_priv(dev); |
9898 | 9898 | ||
9899 | if (netif_running(dev)) | 9899 | if (!netif_running(dev)) { |
9900 | tg3_netif_stop(tp); | 9900 | tp->vlgrp = grp; |
9901 | return; | ||
9902 | } | ||
9903 | |||
9904 | tg3_netif_stop(tp); | ||
9901 | 9905 | ||
9902 | tg3_full_lock(tp, 0); | 9906 | tg3_full_lock(tp, 0); |
9903 | 9907 | ||
@@ -9906,8 +9910,7 @@ static void tg3_vlan_rx_register(struct net_device *dev, struct vlan_group *grp) | |||
9906 | /* Update RX_MODE_KEEP_VLAN_TAG bit in RX_MODE register. */ | 9910 | /* Update RX_MODE_KEEP_VLAN_TAG bit in RX_MODE register. */ |
9907 | __tg3_set_rx_mode(dev); | 9911 | __tg3_set_rx_mode(dev); |
9908 | 9912 | ||
9909 | if (netif_running(dev)) | 9913 | tg3_netif_start(tp); |
9910 | tg3_netif_start(tp); | ||
9911 | 9914 | ||
9912 | tg3_full_unlock(tp); | 9915 | tg3_full_unlock(tp); |
9913 | } | 9916 | } |