Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp42962rdb; Sun, 17 Dec 2023 13:32:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGq1BU2fNOTqLHlROLQ9FIbHqcFmHWdS4Bp6+7WjyJ002ZccuamR19GD4cqW4VmuXMvtSHy X-Received: by 2002:a05:6a20:2927:b0:18f:97c:978e with SMTP id t39-20020a056a20292700b0018f097c978emr14257483pzf.118.1702848751712; Sun, 17 Dec 2023 13:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702848751; cv=none; d=google.com; s=arc-20160816; b=NUkAwJzDolYAWLEcxW2J26lqoSjLEr71sZ3MQlXY5tvb3lMLqQ8HIl9k64x4fcrUsU T+WYY7hNTs24bxIakhSDUwDzv3NQg9Y57tTP8GjE+4wvA/DdfNk2HWCK0FWeOycFrjkm 57O4VnYIKRxEVfg6WRjP8ceWiVXLnZNmyb5OyHj3NRF5l+2S6QNeRDklDLKDmMtVSccJ GkpTV+oE3jMJ1Dg85TKVVLP31hWLdzZMdUdTPrtsqV0pI6MN9Dnrlr6r59HLw7/isR8E 5m5R+WjVqP0VAAVHmTAImJ5RaVY1XJZfR9/QBqJHt3IpSb5+wAkODHADFC9kG8XfV7Lx qB2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zmbqyg8DlPfTFd2i7Pq7CSSoO2EKi7vPmJ3JWLvLT/0=; fh=8sOXXBoj0Da8Y0NgieUQXtoCcUc9xSu2Fh93Y7ivrqo=; b=Gb1TltgPhH/E1EoHIjnjXk29kBvLvhDJ7l+j+p5LM6dNYyQtB4Mt4geQKDVRtiqxtj KqrK3TN/BvzXEVqBLXyNcq31DYTMJgR5J/qgWxeLovOcN3sIW1bz0DxoXDp9TADmASRf jMTn+JEO6LtZMqpBa1JFfhsVvfhlDP+1KIKGnVu73hsvBHLrQcoPajKON9Xwj8PQ5cKu at+poiV5miP5ldnS8DCcja3fp9Ko155D0PtKDEPS49LPSvoSBJCtO+Cpq8sVmzEAbIM9 n3sL1zcfCtOV8oUzrCVhpgehK/HmfXgFMAez9hRtdy/nOTb5N+i6r+cD5Z5B5QEMUj5C P4qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bRu8j86U; spf=pass (google.com: domain of linux-kernel+bounces-2820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q4-20020a655244000000b005c6667e3ce3si16253728pgp.299.2023.12.17.13.32.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 13:32:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bRu8j86U; spf=pass (google.com: domain of linux-kernel+bounces-2820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4D8E528242A for ; Sun, 17 Dec 2023 21:32:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51AA948CF5; Sun, 17 Dec 2023 21:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bRu8j86U" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5804447F5E; Sun, 17 Dec 2023 21:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f54.google.com with SMTP id ca18e2360f4ac-7b712c0fddeso105172139f.3; Sun, 17 Dec 2023 13:32:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702848737; x=1703453537; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zmbqyg8DlPfTFd2i7Pq7CSSoO2EKi7vPmJ3JWLvLT/0=; b=bRu8j86UzgZyzul0WLkMKrXg5yptjcnbMajexDB/NJvdN+i7mwYogTus4IW8+Lb47S yjcdGsunzfu4991TGJjzuHLMvcx/YxEngIUBwlvptlzYbJBDHesYt3lPPTO0XqL2Epjr 1gm5pewh2+mkweNdnvU3FLfIAL2tdUZXk26FG/H+FqnpDnCW3R6TBiOoyVw4U7Gq+dT1 Ew5qQrAtHH5HYhGaiaRBDqUmxcFEd3MvfaodmsoTABdLIGU7QPqDF49vbHFjTnQ+ZVgF mMl4QLni+iT/2ilDeLJo/fLdh8L5DkzFcKJsW8mQwoyL3sxL14XIV0IFRrf9FL66ws31 RYwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702848737; x=1703453537; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zmbqyg8DlPfTFd2i7Pq7CSSoO2EKi7vPmJ3JWLvLT/0=; b=ID0cfezKj1xxUwT1e1Q0VeroYwbPcaS5mjCQz805Za6kMETYnyWZpn6Y0Rl3rNJtK2 Kf7hKuCMdn2XNva2R3baDsdGfQC3lGpsz19B+5UDoxbX4UEG3edJl37MtW4q8ehrO/Vq be3gT0j6mxZZmXbLlqlHPN5vLcd/+gwat2MyXZPPdbbRlPs6SO6+bP3lEBesMro45vHs fbAXmd0KwwjNQvTRPgLJ5lo4EiZJVtEsRpG9BMN0qBV3MPlNNk/jMWvoZ2dH8feet3oy jzqDkHIRdui0SalxFMu28YyDW6tF5AKvoEHk4bG9lnq9p4NPGdB5Cq+xJ/yP0lR3Zo7f cLZA== X-Gm-Message-State: AOJu0Yz4Y9OtBpERs4wzfVBXWFyV2m/eWL/PCR6JKX4eStvOcTucBbKr lKlHx3u3Kov//ucdz7yhBxw= X-Received: by 2002:a6b:700f:0:b0:7ac:cb6b:616a with SMTP id l15-20020a6b700f000000b007accb6b616amr15401775ioc.8.1702848737189; Sun, 17 Dec 2023 13:32:17 -0800 (PST) Received: from localhost ([2601:344:8301:57f0:9c41:1dd2:7d5d:e008]) by smtp.gmail.com with ESMTPSA id eq17-20020a05690c2d1100b005e181bc7d2esm5307181ywb.54.2023.12.17.13.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 13:32:16 -0800 (PST) From: Yury Norov To: Souradeep Chakrabarti , kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, longli@microsoft.com, yury.norov@gmail.com, leon@kernel.org, cai.huoqing@linux.dev, ssengar@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Cc: schakrabarti@microsoft.com, paulros@microsoft.com Subject: [PATCH 0/3] net: mana: add irq_spread() Date: Sun, 17 Dec 2023 13:32:11 -0800 Message-Id: <20231217213214.1905481-1-yury.norov@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add irq_spread() function that makes the driver working 15% faster than with cpumask_local_spread() Yury Norov (3): cpumask: add cpumask_weight_andnot() cpumask: define cleanup function for cpumasks net: mana: add a function to spread IRQs per CPUs .../net/ethernet/microsoft/mana/gdma_main.c | 28 +++++++++++++++++++ include/linux/bitmap.h | 12 ++++++++ include/linux/cpumask.h | 17 +++++++++++ lib/bitmap.c | 7 +++++ 4 files changed, 64 insertions(+) -- 2.40.1