diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-24 18:45:33 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-24 18:45:33 +0000 |
commit | 25c1094c68d52081bd0278e3840e52b84b65b877 (patch) | |
tree | ef97cb9666062abb52b9a250d32ae1fc601bcb3a /sys | |
parent | 04955a5e87e4e118626356319be33fe9ce599b3f (diff) |
don't call stge_init() when changing the MTU.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_stge.c | 8 |
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: |