Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp273204rdd; Tue, 9 Jan 2024 03:57:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsXTudHFibP/w0Lb732luyBumxqBXJLb9xTHiy4EuRH7B0QGWh1aj4UOoPhV1RhydIokX/ X-Received: by 2002:a17:903:120c:b0:1d3:f056:3f57 with SMTP id l12-20020a170903120c00b001d3f0563f57mr3130573plh.13.1704801478140; Tue, 09 Jan 2024 03:57:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704801478; cv=none; d=google.com; s=arc-20160816; b=njVIvhlhsKszXgpVULmFV3/HLvX+oHCzNBHdbk/N+oJXnoW7gKr50sND8fNIhO3Cpk XYwowC1/NTg4hWjU+eHMNX7XQGk/s0VkH02hASJNiPqK1p0hTl/cvHqeZGdAW3NolEeQ 4SKbhYIWAQICuUrtS2DUY85nU3yON20ubInUrsYGE15ebWS8+FakBFwwLJ4db1wV1fPi bjbZZ6cwOSdf+qxHJSbFkBRFYwVmKRAk+/qkZv4OJREDQZa8CFNYx0svKmdRJThda63u 6yQtXKknMgwy5tWxgN6SiZWKXhgUR5ItmAYrX5jS0HVPpu7bkmjDhx4TZOo5iLMlE/3X YxDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=R5fjjJdo/se/lwT5aPeXAFZ4sfB9cJDJDHFW45tKpaw=; fh=LPeZY1VDLeW//yjnFgRFcHjHsOjAcVVO1eeIu5W9q2s=; b=qOLsu5X4ptDtmpf1RNlHRTnGMtB7ns/6wMWhuTrerwAjKmhTVY9V9mSEfODMTFdx7v UyZ6MvNJ+TxLjeC5wtuJtV4IvK2CZhdhA/rIfiDfvVokJX1PdDUvMV1NLBT/XnnQt0Dp fxMLiNZNTSma9/uY3tbRrUcsRm6OmDFISg5nct6Gp2RIjXGaDrK1QXqNPbV64+A0/f0r k8TffekKx7LSb0omvquMg3sAjBheWCjMTg8q/lRS+rjtYB9P/suW1PsN7hU2tX20lwFU CtR/fmqBvZPLUtgekKl2wv55NJ9yxeJGLruiyRVp97cgBJIOMztrNC5+jPiNvhGEaLcU 3awA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MIUN+hgg; spf=pass (google.com: domain of linux-kernel+bounces-20816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v6-20020a170902b7c600b001d4a179e6adsi1368564plz.236.2024.01.09.03.57.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:57:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MIUN+hgg; spf=pass (google.com: domain of linux-kernel+bounces-20816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 C28C8288AD0 for ; Tue, 9 Jan 2024 11:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A02C037160; Tue, 9 Jan 2024 11:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MIUN+hgg" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DFB2381C6 for ; Tue, 9 Jan 2024 11:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704801451; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=R5fjjJdo/se/lwT5aPeXAFZ4sfB9cJDJDHFW45tKpaw=; b=MIUN+hggqqj621iXrWfocc/3bJEN4wQ/IUpzdgUYnETIhlstvRjvQRmBeJ7gg7DV1LEtlU VeIcpH94nGE/utY4nj/DxeD8A8Tdj5STV+iOHbxYYdGx6WQOsmhWlYByhYdlJ9RD8fkNbH GshqpZU9EG245TZXqWBRWP1ykoMeQKo= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-jCVsqlqeNeCfwssaMMFLwQ-1; Tue, 09 Jan 2024 06:57:30 -0500 X-MC-Unique: jCVsqlqeNeCfwssaMMFLwQ-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5576084e86aso184910a12.1 for ; Tue, 09 Jan 2024 03:57:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704801449; x=1705406249; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=R5fjjJdo/se/lwT5aPeXAFZ4sfB9cJDJDHFW45tKpaw=; b=DbJf4BY0tDwXvlx9SQCqyctcUvGf6bqKsXKmqJqCH3dmblFCzj/tsFs1NfDJ+KLaAT jFYD7GndtpanuLw8+4HG+WzWwhL8vJ7HWytMU9MtYyvmW8g8ZkzOflYio833Lkjw+002 CU8SpY5XKIBrazg6ZhHLBUl6n4b4O/cLkObgPf3ET7svt8V+WI90EfTcWHJJfJPsag5/ CKkCsfys2jjH54YkL/1iUAGzI7kstmAkymdlV5TXKO9XptV1037j2KIqDs2MaWlW3xZX Tm47AxdqIQ/FhAJBEvA3sqA0aBiIbY19kppB1o25+77fUoBGtUHPqwoxR1EPGxM3AkhF Cu7Q== X-Gm-Message-State: AOJu0YwHppA4Obgc7z3Kb5ikMYECIRNnsiPX6VuTKH3KJ5GAmrtRWQv9 NkyKs5tLXCmTrulSGrP+M6VEH27MmQIniKgpt9QJzmc8sOb0AqXqaIJa25bG3tofXrGm0VbRhS4 bMIYIIW2M3MXboquTyX3d0uzYPKwI8RJi X-Received: by 2002:a50:cdc5:0:b0:557:4e8a:f2e7 with SMTP id h5-20020a50cdc5000000b005574e8af2e7mr6171032edj.0.1704801448954; Tue, 09 Jan 2024 03:57:28 -0800 (PST) X-Received: by 2002:a50:cdc5:0:b0:557:4e8a:f2e7 with SMTP id h5-20020a50cdc5000000b005574e8af2e7mr6171005edj.0.1704801448612; Tue, 09 Jan 2024 03:57:28 -0800 (PST) Received: from gerbillo.redhat.com (146-241-252-40.dyn.eolo.it. [146.241.252.40]) by smtp.gmail.com with ESMTPSA id dm3-20020a05640222c300b0054b53aacd86sm874254edb.65.2024.01.09.03.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:57:28 -0800 (PST) Message-ID: Subject: Re: [PATCH 0/4 net-next] net: mana: Assigning IRQ affinity on HT cores From: Paolo Abeni 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, 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 Date: Tue, 09 Jan 2024 12:57:26 +0100 In-Reply-To: <1704797478-32377-1-git-send-email-schakrabarti@linux.microsoft.com> References: <1704797478-32377-1-git-send-email-schakrabarti@linux.microsoft.com> Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMaMhk+L8gWc3ZlRQ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0EAakWsqHoKZ5WdpeOcH9iVlUQhRgemQSkhfNaP9LqR1XKujlTuUTpoyT3xwAzkmSxN1nABoutHEO/N87fpIbpbZaIdinF7b9srwUvDOKsywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 (3.50.2-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-01-09 at 02:51 -0800, Souradeep Chakrabarti wrote: > This patch set introduces a new helper function irq_setup(), > to optimize IRQ distribution for MANA network devices. > The patch set makes the driver working 15% faster than > with cpumask_local_spread(). >=20 > Souradeep Chakrabarti (1): > net: mana: Assigning IRQ affinity on HT cores >=20 > Yury Norov (3): > cpumask: add cpumask_weight_andnot() > cpumask: define cleanup function for cpumasks > net: mana: add a function to spread IRQs per CPUs >=20 > .../net/ethernet/microsoft/mana/gdma_main.c | 87 ++++++++++++++++--- > include/linux/bitmap.h | 12 +++ > include/linux/cpumask.h | 16 ++++ > lib/bitmap.c | 7 ++ > 4 files changed, 112 insertions(+), 10 deletions(-) net-next is closed for the merge window period, please repost when it will re-open in ~2 weeks. Cheers, Paolo