From owner-svn-src-all@freebsd.org Sat Apr 15 01:15:20 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95DC7D3E7E1; Sat, 15 Apr 2017 01:15:20 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73B80FF9; Sat, 15 Apr 2017 01:15:20 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id v3F1FBTn009133; Fri, 14 Apr 2017 18:15:11 -0700 (PDT) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id v3F1FAbU009132; Fri, 14 Apr 2017 18:15:10 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201704150115.v3F1FAbU009132@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r316936 - head/sys/dev/cxgbe/iw_cxgbe In-Reply-To: <201704141915.v3EJFVMX093441@repo.freebsd.org> To: Navdeep Parhar Date: Fri, 14 Apr 2017 18:15:10 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 01:15:20 -0000 [ Charset UTF-8 unsupported, converting... ] > Author: np > Date: Fri Apr 14 19:15:31 2017 > New Revision: 316936 > URL: https://svnweb.freebsd.org/changeset/base/316936 > > Log: > cxgbe/iw_cxgbe: hw supports 64K (not 32K) Protection Domains. > > MFC after: 3 days > Sponsored by: Chelsio Communications > > Modified: > head/sys/dev/cxgbe/iw_cxgbe/t4.h > > Modified: head/sys/dev/cxgbe/iw_cxgbe/t4.h > ============================================================================== > --- head/sys/dev/cxgbe/iw_cxgbe/t4.h Fri Apr 14 18:56:00 2017 (r316935) > +++ head/sys/dev/cxgbe/iw_cxgbe/t4.h Fri Apr 14 19:15:31 2017 (r316936) > @@ -61,7 +61,7 @@ > > #define T4_MAX_NUM_QP (1<<16) > #define T4_MAX_NUM_CQ (1<<15) > -#define T4_MAX_NUM_PD (1<<15) > +#define T4_MAX_NUM_PD 65536 Why the change in methods of expressing powers of 2 here? This, imho, would better match the near by code as #define T4_MAX_NUM_PD (1<<16) > #define T4_EQ_STATUS_ENTRIES (L1_CACHE_BYTES > 64 ? 2 : 1) > #define T4_MAX_EQ_SIZE (65520 - T4_EQ_STATUS_ENTRIES) > #define T4_MAX_IQ_SIZE (65520 - 1) > > -- Rod Grimes rgrimes@freebsd.org