From 3ee632a82827d40685551cb21c2beb2bfd9b510f Mon Sep 17 00:00:00 2001 From: np Date: Thu, 13 Oct 2016 19:40:21 +0000 Subject: [PATCH] cxgbe(4): Allow the interface MTU to be set as high as the actual hardware limit. Submitted by: jpaetzel@ Differential Revision: https://reviews.freebsd.org/D8237 --- sys/dev/cxgbe/t4_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index a7c003199d3d..b863fb4a3e87 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -1567,7 +1567,7 @@ cxgbe_ioctl(struct ifnet *ifp, unsigned long cmd, caddr_t data) switch (cmd) { case SIOCSIFMTU: mtu = ifr->ifr_mtu; - if ((mtu < ETHERMIN) || (mtu > ETHERMTU_JUMBO)) + if (mtu < ETHERMIN || mtu > MAX_MTU) return (EINVAL); rc = begin_synchronized_op(sc, vi, SLEEP_OK | INTR_OK, "t4mtu");