]> err.no Git - linux-2.6/commitdiff
[PATCH] skge: avoid up/down on pause param changes
authorStephen Hemminger <shemminger@osdl.org>
Wed, 14 Dec 2005 23:47:45 +0000 (15:47 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 24 Dec 2005 14:36:05 +0000 (09:36 -0500)
Change the pause settings doesn't need to cause link to go down/up.
It can be handled by the phy_reset code.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/skge.c

index f77658192a14f08ff49bb5a76a241efb97b8404c..14bf4cc5b07b17bd3b3a7746e011201c34b3de07 100644 (file)
@@ -504,10 +504,8 @@ static int skge_set_pauseparam(struct net_device *dev,
        else
                skge->flow_control = FLOW_MODE_NONE;
 
-       if (netif_running(dev)) {
-               skge_down(dev);
-               skge_up(dev);
-       }
+       if (netif_running(dev))
+               skge_phy_reset(skge);
        return 0;
 }