From: Stephen Hemminger Date: Wed, 14 Dec 2005 23:47:45 +0000 (-0800) Subject: [PATCH] skge: avoid up/down on pause param changes X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e8df8554605f014765732605667145c0824a12b7;p=openwrt%2Fstaging%2Fblogic.git [PATCH] skge: avoid up/down on pause param changes 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/skge.c b/drivers/net/skge.c index f77658192a14..14bf4cc5b07b 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -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; }