Revert "nforce: Disable MTU changes."

This reverts commit 25742b78fb.

It was confirmed the MTU change introduction was unrelated to the
problems seen in this ticket.
This commit is contained in:
Augustin Cavalier
2022-06-10 13:43:30 -04:00
parent 30763b1e79
commit 10f4c2bd71
@@ -1722,7 +1722,6 @@ nfe_ioctl(if_t ifp, u_long cmd, caddr_t data)
error = 0; error = 0;
init = 0; init = 0;
switch (cmd) { switch (cmd) {
#ifndef __HAIKU__
case SIOCSIFMTU: case SIOCSIFMTU:
if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > NFE_JUMBO_MTU) if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > NFE_JUMBO_MTU)
error = EINVAL; error = EINVAL;
@@ -1742,7 +1741,6 @@ nfe_ioctl(if_t ifp, u_long cmd, caddr_t data)
} }
} }
break; break;
#endif
case SIOCSIFFLAGS: case SIOCSIFFLAGS:
NFE_LOCK(sc); NFE_LOCK(sc);
if (if_getflags(ifp) & IFF_UP) { if (if_getflags(ifp) & IFF_UP) {