If we change the MTU, kick the interface; it may have to reprogram
registers for the new MTU.
This commit is contained in:
parent
1dfe605642
commit
c7edeb2b4f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ethersubr.c,v 1.86 2001/06/29 18:12:09 thorpej Exp $ */
|
||||
/* $NetBSD: if_ethersubr.c,v 1.87 2001/07/25 03:05:33 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -1410,6 +1410,10 @@ ether_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
error = EINVAL;
|
||||
else
|
||||
ifp->if_mtu = ifr->ifr_mtu;
|
||||
|
||||
/* Make sure the device notices the MTU change. */
|
||||
if (ifp->if_flags & IFF_UP)
|
||||
error = (*ifp->if_init)(ifp);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue