Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1917617pxu; Sun, 13 Dec 2020 07:32:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYFQ6bgFHhnBylV6X/IrWnzLwy94HGW2Qb644vrxIKwrQYi2n3Jah6UsYvfbWB5rmQwZxO X-Received: by 2002:a05:6402:95c:: with SMTP id h28mr2929134edz.26.1607873521458; Sun, 13 Dec 2020 07:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607873521; cv=none; d=google.com; s=arc-20160816; b=T/1ruPxyYB9huo4kZYwWy4s+1qVAii3vMLomqw7q3SeZ65rXGsysxtOUvOOlUDDYUw B1vXVZhx7uY38ueMDpQP+r65yiWVFWusJMHFE8JH6Oe8aIPMwo8vq+lTgdszcAZHStYd z5+DAWsJfYUkB+XOVKtaMpODgXVR0l27yy44tZEByuu4KCEU9Q2wwFaQyJjjKmyDsUJs TpPuhFl5RNAxuwDawfK0kRByiNY+JC2tbJPev4X8vGWrZWBcwp+S3JrTldIcARrMASw0 xo7mpK4BmG0pRF3f+ga69MqaNsGHuftKCLUB/OfU1WZr7FYfFuW+cJbrG7WtHiumtE5A 59Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Nk1ANxlzzip/J4mjShQ0Pve9n07Xf0iz5t5d5/vJfQY=; b=vbKnDD9qykpxCDMTWWXNIg6JmWF47fqOLvcX1/IhmfQJSbjSZslnOZT5p4xyFsZKZX fip9GhqobTx7z/cPhtbd3CvcQ849MWjkd7WFUUmPgjn88qx2TPbkOlipKHd0M01BMqTr EOb0Q8hOgWYwgwYBQlVQbriFrcVO4NctKE+5M2UK5uV4edS4OFesutAuOubGgwDuWt2O R1beYAenfdLLIifF5kgKPsc6tlA5JZckeccYy88eXQInA57qt6y02IpZn7bo+Za7E88E /Km7bZURx4VLpqEBX49EN6f8hWA3UJzvdnatfKRKHsMTYuHPIP15YbEiYRG+ozK7xXd8 B5nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=iq9VUxck; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si8423621edp.95.2020.12.13.07.31.37; Sun, 13 Dec 2020 07:32:01 -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=@linutronix.de header.s=2020 header.b=iq9VUxck; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439086AbgLLNLS (ORCPT + 99 others); Sat, 12 Dec 2020 08:11:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgLLM7Z (ORCPT ); Sat, 12 Dec 2020 07:59:25 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E7CEC0613D6; Sat, 12 Dec 2020 04:58:40 -0800 (PST) Date: Sat, 12 Dec 2020 12:58:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607777916; h=from:from:sender:sender:reply-to: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; bh=Nk1ANxlzzip/J4mjShQ0Pve9n07Xf0iz5t5d5/vJfQY=; b=iq9VUxck3I8zV1Dmy4dvmvhdAxGBWtJSDMaISKDry9leK+k2j025/tbvtTmWfzWbhhyg97 zj0/y8etPja45AXsk6dUPdV9KCM1pNLcBGxGU+QFsuSgpD5HXul+nmqDliRprYkxpV0mKt Ox2GxFDsEVBJqvq9Xg00cbTWjFR8yvDesHiA6FwGViTGX3chpcPjiFLCbOOvszxLsTAPMm Y3dK15JG6QK5uPeLWCmOH1oXXfevwrzeYYhjIEgilS8fKb7nLwLH2O+Yu4aNxvbfGGGeSD 5HxVgPNSvu6j3fgogYFZoYfM4PlI4Bife8E7xcAnW0lBTVfzog0884Q4d2dCYA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607777916; h=from:from:sender:sender:reply-to: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; bh=Nk1ANxlzzip/J4mjShQ0Pve9n07Xf0iz5t5d5/vJfQY=; b=UFoDapTaeoeRjH9CekvXf+2xB7o+JTFTfYpfuwjXpgO1C2/1AzD1UB9UUwkV1MG+r4VrJ0 WmOjehpn81WcjvBw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] net/mlx5: Use effective interrupt affinity Cc: Thomas Gleixner , Saeed Mahameed , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20201210194044.876342330@linutronix.de> References: <20201210194044.876342330@linutronix.de> MIME-Version: 1.0 Message-ID: <160777791620.3364.1699410105095052355.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/core branch of tip: Commit-ID: ca00c76aa8acf5a7563dd9f5020f9c6dc9a0577d Gitweb: https://git.kernel.org/tip/ca00c76aa8acf5a7563dd9f5020f9c6dc9a0577d Author: Thomas Gleixner AuthorDate: Thu, 10 Dec 2020 20:25:59 +01:00 Committer: Thomas Gleixner CommitterDate: Sat, 12 Dec 2020 12:59:06 +01:00 net/mlx5: Use effective interrupt affinity Using the interrupt affinity mask for checking locality is not really working well on architectures which support effective affinity masks. The affinity mask is either the system wide default or set by user space, but the architecture can or even must reduce the mask to the effective set, which means that checking the affinity mask itself does not really tell about the actual target CPUs. Signed-off-by: Thomas Gleixner Cc: Saeed Mahameed Link: https://lore.kernel.org/r/20201210194044.876342330@linutronix.de --- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 0e19b3c..dad9bd8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -1998,7 +1998,7 @@ static int mlx5e_open_channel(struct mlx5e_priv *priv, int ix, c->num_tc = params->num_tc; c->xdp = !!params->xdp_prog; c->stats = &priv->channel_stats[ix].ch; - c->aff_mask = irq_get_affinity_mask(irq); + c->aff_mask = irq_get_effective_affinity_mask(irq); c->lag_port = mlx5e_enumerate_lag_port(priv->mdev, ix); netif_napi_add(netdev, &c->napi, mlx5e_napi_poll, 64);