Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3360078pxb; Mon, 24 Jan 2022 08:02:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLib4kUhgECxoBPQQWY0BGcQf+R1HnoJ0kmr0chBJ6XgUmXL4Dg0byJh07tmtvgpLF3KZw X-Received: by 2002:a17:903:110d:b0:149:a833:af21 with SMTP id n13-20020a170903110d00b00149a833af21mr15308368plh.14.1643040168444; Mon, 24 Jan 2022 08:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643040168; cv=none; d=google.com; s=arc-20160816; b=yw2vSQIaByd7rF155NMeAufqcaAiscn5ohTAROd59k7rOHrNGw0oRSzhiwYQKL8YYJ TMjmdMx6h93jI/4XRWPyBLZ8zPEvpV7VwqsBjRxXXmDgQjV/WVw5CLZWrxYinzhd/oaW BMd/QYn+jrfA49TysHB7E+Pe97UbVMVkCYA5yrLhDE8uJwIdDNc37Hb0IZq4IxbdUR5h qPOIxWWH7hVph1mc3X+5sJOsa4TWUixV1MiNA1Zs1vKVDBkp+XR0rsFDa+13YdNjP1Cq Fkr++xkUiCwdg2GQyM/rPoVm09utIAWEzuLy6yOULxMXMPgefWyQ4iyCHjexbMWryVaI NO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=ngdcx5M1+3hpr61oSCKB6Asopn1L3OGrgWMCvfbgA58=; b=EBwmwr8qsjSJ/leYnwJ8ukQdS1RnRV1VvfTQjhJiUkKHQOSVW4OGUkk9SXmZf0yEkT FOFM9l5NwhbGefdm6BH6OSriKVlfds7SX6iKLnnWy6TY+ssMqUg1hKQG1K7sSVFckgZ4 dAW1GHCYqqzYba9TUGD5UlSVNkjrmVfVTtwj0+ZRVVgu/DVeqOtPj/xxfjxsDzGaLZWU o/p7Dfu/mdkGkKy/7EgkL7Jhp26nGX5bNknYdsosrc+933rFj9+Ntgyimm5yn81P/lVc zjaH/wAmAMv0pnzs47tORmlpmeYXgpZYTnKLld/IHyIHEsnwmuQp57DX/5+sFpoFBj1a +/WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=phsGvUiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si12400787pll.28.2022.01.24.08.02.35; Mon, 24 Jan 2022 08:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=phsGvUiG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240980AbiAXDLf (ORCPT + 99 others); Sun, 23 Jan 2022 22:11:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240977AbiAXDLe (ORCPT ); Sun, 23 Jan 2022 22:11:34 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB54C06173B; Sun, 23 Jan 2022 19:11:34 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id w12-20020a17090a528c00b001b276aa3aabso19464540pjh.0; Sun, 23 Jan 2022 19:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=ngdcx5M1+3hpr61oSCKB6Asopn1L3OGrgWMCvfbgA58=; b=phsGvUiGdErZNfIQ7O94rTBjcrw/qCtZzEu8oxQG/T71ap9PrhTtqd+jAGb8VtgsKw zk3Cukyr4rLwpqpWQMRyCJaoeRBi+Kb1rH4IOzpSxW2x5R2USOMgckQG5yYCleBUnD6T ZKwdqAItudQWnQ3Ks0phtGTIuskcoj9ypM/WlXodeIotZExbuEWGbeT4tQGgNc1z9VZb KODNGngXJ/k+nzO2RrBEMre6OSMcDdaZzUQtcKFaTgG/OU7Bnpadk/5JgMn97+vovIc6 S7I1Yc1qayhXeCpXgTCkjYiOcNn1Ew8xqBD2ZtOFS8gI+KsVdNWHYhwgB0DUJ7ANzDTv hunQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=ngdcx5M1+3hpr61oSCKB6Asopn1L3OGrgWMCvfbgA58=; b=GRHEOz6uq9M4e5IO6AsQkxtDxihN5yvoq9m8OLQ7uFvG1lO5EG0zlQADkuUY4jgLbN t/E58CazjgxRyQt/3C+cdclZoO60rAo96uG+LLj1KdaxtwclpwMQIydhttsErRKc47yK ufCTUzDVvcRTAu5kPjWmSAKfSi+ZtgOgKret4o53IGT9DefDYYPJRaIiJNazwrXmwCba LRCLqTJCSHS09YjPRfJjiYzvB1T+NgyfCIawUX46Vtc7Otg7xHa8Jbwa9rnUR8vY8cuT 58Q99QQAzX4FMDg/HZVyFwDbXYxYO+lsmSoxdIaA8bqcWKgZcVui9DRKgR+RYnHnEGLn sH/A== X-Gm-Message-State: AOAM533xf5SceE2VCl4662AClVkUrFKrzKm68d6SE8IWPuS0PhHDgm5x yTu+DwP4UzkAcQWE315XuzM= X-Received: by 2002:a17:902:a70b:b0:149:75ae:4d63 with SMTP id w11-20020a170902a70b00b0014975ae4d63mr13208287plq.50.1642993893555; Sun, 23 Jan 2022 19:11:33 -0800 (PST) Received: from ?IPV6:2600:8802:b00:4a48:5d89:db9e:1ac7:6fdc? ([2600:8802:b00:4a48:5d89:db9e:1ac7:6fdc]) by smtp.gmail.com with ESMTPSA id ms14sm11715278pjb.15.2022.01.23.19.11.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Jan 2022 19:11:32 -0800 (PST) Message-ID: Date: Sun, 23 Jan 2022 19:11:31 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 02/54] net/ethernet: don't use bitmap_weight() in bcm_sysport_rule_set() Content-Language: en-US To: Yury Norov , Andy Shevchenko , Rasmus Villemoes , Andrew Morton , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Greg Kroah-Hartman , Peter Zijlstra , David Laight , Joe Perches , Dennis Zhou , Emil Renner Berthing , Nicholas Piggin , Matti Vaittinen , Alexey Klimov , linux-kernel@vger.kernel.org, "David S . Miller" , Jakub Kicinski , bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org References: <20220123183925.1052919-1-yury.norov@gmail.com> <20220123183925.1052919-3-yury.norov@gmail.com> From: Florian Fainelli In-Reply-To: <20220123183925.1052919-3-yury.norov@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/23/2022 10:38 AM, Yury Norov wrote: > Don't call bitmap_weight() if the following code can get by > without it. > > Signed-off-by: Yury Norov Acked-by: Florian Fainelli -- Florian