Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2018 17:45:44 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336720 - head/sys/dev/cxgbe
Message-ID:  <201807251745.w6PHji1p014150@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Jul 25 17:45:43 2018
New Revision: 336720
URL: https://svnweb.freebsd.org/changeset/base/336720

Log:
  cxgbe(4): Remove useless code that crept in with r336718.
  
  MFC after:	3 days
  X-MFC With:	336718

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

Modified: head/sys/dev/cxgbe/t4_sched.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sched.c	Wed Jul 25 17:20:54 2018	(r336719)
+++ head/sys/dev/cxgbe/t4_sched.c	Wed Jul 25 17:45:43 2018	(r336720)
@@ -146,14 +146,6 @@ set_sched_class_params(struct adapter *sc, struct t4_s
 			fw_rateunit = FW_SCHED_PARAMS_UNIT_PKTRATE;
 		} else
 			return (EINVAL);
-
-		if (p->level == SCHED_CLASS_LEVEL_CL_RL) {
-			/*
-			 * Valid pkt-size must be provided.
-			 */
-			if (p->pktsize < 0)
-				return (EINVAL);
-		}
 	} else {
 		MPASS(p->level == SCHED_CLASS_LEVEL_CL_WRR);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807251745.w6PHji1p014150>