Author: np
Date: Thu Jan  1 09:33:46 2015
New Revision: 276498
URL: https://svnweb.freebsd.org/changeset/base/276498

Log:
  cxgbe(4): remove buf_ring specific restriction on the txq size.
  
  MFC after:    2 months

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

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c        Thu Jan  1 08:30:32 2015        
(r276497)
+++ head/sys/dev/cxgbe/t4_main.c        Thu Jan  1 09:33:46 2015        
(r276498)
@@ -5258,8 +5258,7 @@ sysctl_qsize_txq(SYSCTL_HANDLER_ARGS)
        if (rc != 0 || req->newptr == NULL)
                return (rc);
 
-       /* bufring size must be powerof2 */
-       if (qsize < 128 || !powerof2(qsize))
+       if (qsize < 128 || qsize > 65536)
                return (EINVAL);
 
        rc = begin_synchronized_op(sc, pi, HOLD_LOCK | SLEEP_OK | INTR_OK,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to