From nobody Mon Jun 24 07:27:55 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W7018152Kz5NX7D; Mon, 24 Jun 2024 07:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W7017683Wz4Tg3; Mon, 24 Jun 2024 07:27:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719214075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pTW6jPA//HNYbJo11vNjX0LoHV48++qKCny9csSAObg=; b=XVZiNUnU0I82NrdYDOBIWOeFznZcKm22vHFBTAN+ddKdf8Mxqk3itN+c3o5TchS0o65s2L dUX0fjpKQEzQEVxYbJWesTIPHsNk5SE5BANIPXt0MB0U9r4aSLBFp9PyKEBO7sAavP3PUX hxbGDpsigYfhciX26XlYjtmDyLQA6pdot2zPdvp1+beZYzvHFsFFTq7zkT71/EFK/OlgSF voX/u0jD1Dz21uAVLjjurYK5hCkOMpj8MaDtDf7NpphrV4g/9yr5Sq47uW9SXhnysvGPkk k/9IVdMCcAtO3rVpfUBHjQ9c8FYlPIwes8qImO5PfpikZs09L75bEdfVsMJqCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719214075; a=rsa-sha256; cv=none; b=RheZUFZVR9t0m+i91sHjiD/fbqYdocc0iJPQwZL6UIqpsJG/R0IVKIUB3B16ffIlPyWDl5 6q2za9D0P0JNL8MFBsM/FO7fiSnZLsoGUhLdDExvMSxKFpWm7w7whtXoPFUgeBi1c+8kNF r1l/OkY+qJ3/e95Al+fB3mUpI4uLbUw8e2Xs1qUAiyA3TJCa/U2nTJmxEHNVSl9ei7jeui 4cAc4IDVGuohwf8Kc1fzXvcpA+3n1Yju1O95lfi7c11Qj4JW04/Xik1dHwZQaDnPorl0Vr NFr2M+n4P1cdAooUqT12hpHG4wLeUSwC1YNoKA/RwNp0ATLniLZmLl63mK99yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719214075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pTW6jPA//HNYbJo11vNjX0LoHV48++qKCny9csSAObg=; b=WY+8Q50HmMc96RE74c0iVrx53wmhrP1Y1cQP5gVorLL2ERjSBpzTv7SrZyjRXlu37HpCTQ ZGxayniCAoet1PS7UPYxyLBXD8C+zxt1oaRJSbHdUoI5iMOvXQZnZElt7Xs55V6VnE5SUS i40rpI2xGoI9HZDvbZvLpBAhigYQ+xtZtxnafbeX1oykt/DqKC7Ingca0gJG/eCcty07i9 T32tCLjxmU9Gpre+XSJZWLc78WugsU6WIp/WoxkFco8HAaJssIGdEzJKsSG0ZzvnLWAL9c WLtT8Zk95vO0BpizNcF1ZnxgyXwZD0kQ+xUVnXbBYvTnlwu2hF4BHOieIqOb5Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W70175NGvz17qF; Mon, 24 Jun 2024 07:27:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45O7RttP044451; Mon, 24 Jun 2024 07:27:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45O7Rtik044448; Mon, 24 Jun 2024 07:27:55 GMT (envelope-from git) Date: Mon, 24 Jun 2024 07:27:55 GMT Message-Id: <202406240727.45O7Rtik044448@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: 5fc42387d704 - main - cxgbe: use order_base_2 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5fc42387d704295745a9bc05bde07bdf05ed2526 Auto-Submitted: auto-generated The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=5fc42387d704295745a9bc05bde07bdf05ed2526 commit 5fc42387d704295745a9bc05bde07bdf05ed2526 Author: Doug Moore AuthorDate: 2024-06-24 07:18:42 +0000 Commit: Doug Moore CommitDate: 2024-06-24 07:18:42 +0000 cxgbe: use order_base_2 Use order_base_2 in place of an expression. Reviewed by: alc, markj Differential Revision: https://reviews.freebsd.org/D45536 --- sys/dev/cxgbe/t4_sge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index 350d385ac490..b4eb0701821a 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -4228,7 +4228,7 @@ qsize_to_fthresh(int qsize) { u_int fthresh; - fthresh = qsize == 0 ? 0 : fls(qsize - 1); + fthresh = qsize == 0 ? 0 : order_base_2(qsize); if (fthresh > X_CIDXFLUSHTHRESH_128) fthresh = X_CIDXFLUSHTHRESH_128;