Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2018336pxu; Sun, 13 Dec 2020 10:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKn9KVxpsdQfFBZmjggwQZanhWabCKxjsI4hHAyMtHUpU0tL/iM6Shy2B9KCireD5nrT6k X-Received: by 2002:a17:906:d930:: with SMTP id rn16mr19847955ejb.412.1607885050503; Sun, 13 Dec 2020 10:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607885050; cv=none; d=google.com; s=arc-20160816; b=Z+Q0uhJvzp7aCNNaEnpxFAo36C2Rpe7vfuVY41FLnmxCsBkTx5mmIhbvfAr76t1/50 glCMQmMC9+WTFG4GQ1gytjGQfd9DRThGoUDntwkHF4RSihISssoO73NFnnAOdk2SVzwX rRnt+UBVeQrY6QBKmjT+tnvMdWIph39jvukqXwbjXsJUupkIAdYVbD3JRGI3nrtzSpXK EdKcBQIq1ESmB7uLouzPC+lvn4MAbSH4EDCZARv5k8eMBu3zl+p3Na9sh6iSAqXQl7F6 Ab/m4bWY3OedGBaNeQ8pfQ7u2ff9H7gUp6lAb8+2FqGVg7auAfxlFSvzOqD1bcrkyb6k apoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=yO3vpR//yJ3KukN+tPfw/ullrK0O2qQE7kKjDuWCMp8=; b=YkseIacX6kU8qiuyNrvebq7Xq0Y28InyirF3uKkty9q/m2P1LrdN1JKdAOKKc/mmh7 /WFHFAvZN8oCcsSiW3KT2Lba91fBbUbIUYxyiMbWl/nxxhiU+Kd25xcAEu3Q0XEXpaIa Eit/E6fTAF5CLMH7ERZ3Hy7MwQD+uyzUC9YYTmxPsiUpmpJS3L2i7DJIAd4oTVLUTJtk ghkM/71zqt21vQo7oP9+OOBRgQuqmDXtdH1CoQxrVbR1JWjBULGj5wrGhHXwT9Nz3Aij qclqJIzgkI7AF2ybSv87QgNj5qHZepKyy418J2Cntg+7VCpd2MswZrjG3hIN9SssvBuh XefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c6i+ahBj; 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 p89si9051396edp.328.2020.12.13.10.43.48; Sun, 13 Dec 2020 10:44:10 -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=20161025 header.b=c6i+ahBj; 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 S2405936AbgLMLgq (ORCPT + 99 others); Sun, 13 Dec 2020 06:36:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgLMLgp (ORCPT ); Sun, 13 Dec 2020 06:36:45 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BAB5C0613CF; Sun, 13 Dec 2020 03:36:05 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id cw27so14150670edb.5; Sun, 13 Dec 2020 03:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yO3vpR//yJ3KukN+tPfw/ullrK0O2qQE7kKjDuWCMp8=; b=c6i+ahBjD9/Rh0qH45as2/C0d/Lv5nDMeI06jod3TPucN2QtiguKTRZxCznQ+jpaBW gvv5i+HN/z0qVNmozmLuRxtFAJ9V7+Ekywb7P9Eyni0NfuaKlPKyK+aL+VAfVSMYk6ET IsS0+k2gRUdseUfqRF/UdU5bAlwQl7B5WJwI1REXIqN2aaNIVtttoMQkfvNoRFm/NQ/2 CwmCf0DUfVLjwlDCo2/HXyzoa2xfU2BeyMBSUUM5MgQ4udzSF7fTqhAJZgUGdY3OmduU Wly23cmVni7LPdYQgfxlnoj5hfppXocENHNXxV4IuuZv3YXWmfxmP1sbgWNiQqwcc5pM VImw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yO3vpR//yJ3KukN+tPfw/ullrK0O2qQE7kKjDuWCMp8=; b=DIjS1DZKaA1uLx9DUmPK6kHRRxVbahEomjt24v6MM407hxRMSGH/kLlDM3dmdUzlw+ YNJw6S0nJxRbeKD2SbRBpjxXMY6GaiWKCCB/frBCxBniC1lKSmFbM9uJz0Avi+F0YyPB xiKrXyWFzxSJa1WDFME2Q086r/UarRHZulaOAIWLFNLc8l7ZMn0tzXBFJ6G1hq6yXkh3 roGnCrhzARLUtrRzTuz/2Tw8f0VVAeo2ttug4Zd07opJJ3cPwO4fywfC2EHMQF9zxwpJ S4ZpVLZUZAqvGQvVUvqQfN1AWmGgFPAEYmRdcboSw8QzqI+9zLmmlVK8RYQxH4MzQ0zy kH4Q== X-Gm-Message-State: AOAM530IIddpA/44A76Lf8MS4Wf7DwSLSneaoPaZMgvyfOXnF+JDxSWb b5vGQDpqDc+e4Bfbl+mNhjw= X-Received: by 2002:a50:a6c9:: with SMTP id f9mr20130904edc.158.1607859364213; Sun, 13 Dec 2020 03:36:04 -0800 (PST) Received: from [192.168.0.107] ([77.127.34.194]) by smtp.gmail.com with ESMTPSA id ef11sm11222266ejb.15.2020.12.13.03.35.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Dec 2020 03:36:03 -0800 (PST) Subject: Re: [patch 23/30] net/mlx5: Use effective interrupt affinity To: Thomas Gleixner , LKML Cc: Peter Zijlstra , Marc Zyngier , Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , afzal mohammed , linux-parisc@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Will Deacon , Christian Borntraeger , Heiko Carstens , linux-s390@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Pankaj Bharadiya , Chris Wilson , Wambui Karuga , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Tvrtko Ursulin , Linus Walleij , linux-gpio@vger.kernel.org, Lee Jones , Jon Mason , Dave Jiang , Allen Hubbe , linux-ntb@googlegroups.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Michal Simek , linux-pci@vger.kernel.org, Karthikeyan Mitran , Hou Zhiqiang , Tariq Toukan , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org References: <20201210192536.118432146@linutronix.de> <20201210194044.876342330@linutronix.de> From: Tariq Toukan Message-ID: Date: Sun, 13 Dec 2020 13:35:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20201210194044.876342330@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/2020 9:25 PM, Thomas Gleixner wrote: > 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 > Cc: Leon Romanovsky > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: netdev@vger.kernel.org > Cc: linux-rdma@vger.kernel.org > --- > drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- 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 mlx > 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); > Reviewed-by: Tariq Toukan Thanks.