Date: Thu, 1 Jan 2015 09:33:47 +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: r276498 - head/sys/dev/cxgbe Message-ID: <201501010933.t019XlDw018650@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501010933.t019XlDw018650>