Author: np
Date: Thu Oct 13 19:40:21 2016
New Revision: 307233
URL: https://svnweb.freebsd.org/changeset/base/307233

Log:
  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

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c        Thu Oct 13 19:33:07 2016        
(r307232)
+++ head/sys/dev/cxgbe/t4_main.c        Thu Oct 13 19:40:21 2016        
(r307233)
@@ -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");
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to