Date: Mon, 5 Dec 2016 23:25:49 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r309575 - in stable: 10/sys/dev/cxgbe 11/sys/dev/cxgbe Message-ID: <201612052325.uB5NPnr3046366@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Mon Dec 5 23:25:49 2016 New Revision: 309575 URL: https://svnweb.freebsd.org/changeset/base/309575 Log: MFC 307233: cxgbe(4): Allow the interface MTU to be set as high as the actual hardware limit. Modified: stable/11/sys/dev/cxgbe/t4_main.c Directory Properties: stable/11/ (props changed) Changes in other areas also in this revision: Modified: stable/10/sys/dev/cxgbe/t4_main.c Directory Properties: stable/10/ (props changed) Modified: stable/11/sys/dev/cxgbe/t4_main.c ============================================================================== --- stable/11/sys/dev/cxgbe/t4_main.c Mon Dec 5 23:23:13 2016 (r309574) +++ stable/11/sys/dev/cxgbe/t4_main.c Mon Dec 5 23:25:49 2016 (r309575) @@ -1567,7 +1567,7 @@ cxgbe_ioctl(struct ifnet *ifp, unsigned 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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612052325.uB5NPnr3046366>