svn commit: r307233 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Thu Oct 13 19:40:22 UTC 2016


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");


More information about the svn-src-all mailing list