Message ID | 1705939259-2859-1-git-send-email-schakrabarti@linux.microsoft.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-33641-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2714405dyb; Mon, 22 Jan 2024 09:15:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGHrMkmLgra8xGFD/fVno3XN/Li+ACdZR1f/ODP4tcqm+qd3TTFC1RccFRp0F7wylbu2DN X-Received: by 2002:a05:6a20:1608:b0:19c:4fd5:dd0f with SMTP id l8-20020a056a20160800b0019c4fd5dd0fmr765291pzj.98.1705943725156; Mon, 22 Jan 2024 09:15:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705943725; cv=pass; d=google.com; s=arc-20160816; b=umVVdLi09NUdHW0tV1v9K0ENQMIfYfOKT3Aqs8TvgKzedskqe2jdhqdnNh8Mzz7uo3 8K8myN1cYCVXCQ4PXfB44utLJgq8H8ind+ns91fX/XBm2C7rozj32EhX5dWYUJ7ZMo9B Qgrc+zvruN90q+8PRCr9DwmZGX4MJsoapG8s5VhEyP86PfLz6CCXxP/reXT3ZEqUfsCI OTWVoA860lbP+6oqWBdw1k7cU858oHtTJ/5NHlEb05SvNhRVgYxIzRbz0REkCB7SbppQ DYU+mHIy4kAF1vJEZ8roteZ5MOTmX1m7K9vh0mu2y23gZ/VcIUw27c8gyAABV9zSE4ni civA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=Rw8jwgVZoYjfKXdEQm8UxCv82lHMwpdoFJrxNC9RYwM=; fh=i0uHiUPKHfc1dSxTUTgp1cL8PKSGIUKO6qVCzrDTDzE=; b=mjWlhlIPjw7/D5VThkvvolViieNmMIvljY0IRTI/PwskyMKh9ZD7aga9aRPDSAOfyh 6X4fzgJ1YZMapTqiodlvNcN70IM7ZqbwgIegPHB+8TeMhNbJ6Guvo2xri4GbMh5ScpjJ fz29Cf1MlqywqO/M1WsvhXH8wOPjKffmVHDjwCgWV9PAqcyszfHxgchtefH3pEnReBTq dFCdrzUoH4P/uHCF66jfXWiNGj7vTwyJhOUeo6MoMvFh9fDjkzhK2bcNBbf9oSzzFfSW CoVpNFbtGdemd0sdv1B6mfIqbHCWe14nl0q///s1ovW+otrnKY38vkQGqWSzzeko14+O JqxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=bXTGcyCe; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-33641-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33641-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h65-20020a625344000000b006dbe1b70210si1839362pfb.176.2024.01.22.09.15.25 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33641-ouuuleilei=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=@linux.microsoft.com header.s=default header.b=bXTGcyCe; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-33641-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33641-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.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 935D2283199 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 17:11:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 112864D139; Mon, 22 Jan 2024 16:01:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="bXTGcyCe" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 161363D57B; Mon, 22 Jan 2024 16:01:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705939265; cv=none; b=Jy+zl/qYICGaKqb8KfQozfVu8TX6Dpo0emyti+wWTrPmXpWk/hnQSKCXVy4L+tAJOJBFO3LH6Q6Ovsru3gZb0e+kBheIa87WOg2ifTkZrLh7Ceo/VdA2UJW88Fn8rxTz1ew9lsLgLBLCFBbuKduy2npe4IiPN16tcZgVsGUD+G4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705939265; c=relaxed/simple; bh=JYlP6PYFKBxEkI9PAgsSX46npvX9bKn6YKMVh4R9Y1A=; h=From:To:Cc:Subject:Date:Message-Id; b=s6jwRfA+FDf207nyhb876JRADoufhgJMGpsWwK5q2sqTskK/Dy4eFjWrAigcygohsRE2WZhq/XT95dvn3db3q0GljJMBV1s1rLhKY/tczt+0KWJVXL+4TaGvSbr+zMxpBekVPp0bFUQv/DExSCYaDhQQvNri7EgOaOTXcITFvGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=bXTGcyCe; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1099) id 9EFC920E1AB5; Mon, 22 Jan 2024 08:01:03 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9EFC920E1AB5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1705939263; bh=Rw8jwgVZoYjfKXdEQm8UxCv82lHMwpdoFJrxNC9RYwM=; h=From:To:Cc:Subject:Date:From; b=bXTGcyCeohgLywzb+DCFeM7Q7EnH05mCkdpVg/tORXzu6Cn1yUSqTWt3alatzDSXi gsPEbtNvGE5Wear/qASZTGozA9tj/QC6inEhv7JkBpSnm0Hg/SzpCEk1WPxke/qPeB baFsP34J3/BlHQWiNPPqR1ZwGyXkWmEmGLuALczM= From: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com> To: 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, Souradeep Chakrabarti <schakrabarti@linux.microsoft.com> Subject: [PATCH 0/4 V2 net-next] net: mana: Assigning IRQ affinity on HT cores Date: Mon, 22 Jan 2024 08:00:55 -0800 Message-Id: <1705939259-2859-1-git-send-email-schakrabarti@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788811647643093881 X-GMAIL-MSGID: 1788811647643093881 |
Series |
net: mana: Assigning IRQ affinity on HT cores
|
|
Message
Souradeep Chakrabarti
Jan. 22, 2024, 4 p.m. UTC
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(). Souradeep Chakrabarti (1): net: mana: Assigning IRQ affinity on HT cores 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 | 88 ++++++++++++++++--- include/linux/bitmap.h | 12 +++ include/linux/cpumask.h | 16 ++++ lib/bitmap.c | 7 ++ 4 files changed, 113 insertions(+), 10 deletions(-) -- Change: V1 -> V2: Added some details on the performance study on the patch 4/4.