svn commit: r309575 - in stable: 10/sys/dev/cxgbe 11/sys/dev/cxgbe
John Baldwin
jhb at FreeBSD.org
Mon Dec 5 23:25:50 UTC 2016
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");
More information about the svn-src-stable
mailing list