summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-24 18:45:33 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-24 18:45:33 +0000
commit25c1094c68d52081bd0278e3840e52b84b65b877 (patch)
treeef97cb9666062abb52b9a250d32ae1fc601bcb3a /sys
parent04955a5e87e4e118626356319be33fe9ce599b3f (diff)
don't call stge_init() when changing the MTU.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_stge.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c
index 03f83e0c8e0..0ec114499bb 100644
--- a/sys/dev/pci/if_stge.c
+++ b/sys/dev/pci/if_stge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_stge.c,v 1.17 2005/07/02 00:55:09 brad Exp $ */
+/* $OpenBSD: if_stge.c,v 1.18 2005/07/24 18:45:32 brad Exp $ */
/* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */
/*-
@@ -876,12 +876,10 @@ stge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
case SIOCSIFMTU:
- if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU) {
+ if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU)
error = EINVAL;
- } else if (ifp->if_mtu != ifr->ifr_mtu) {
+ else if (ifp->if_mtu != ifr->ifr_mtu)
ifp->if_mtu = ifr->ifr_mtu;
- stge_init(ifp);
- }
break;
case SIOCSIFFLAGS: