Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2018107pxu; Sun, 13 Dec 2020 10:43:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCVmSnF/WgLpX/tNWEhgHx5GVKe62OUsFzuGUq0uWNsgyL0abEX3b6ZxfxPqmPHW5c+cCF X-Received: by 2002:a50:e84d:: with SMTP id k13mr21172303edn.154.1607885028184; Sun, 13 Dec 2020 10:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607885028; cv=none; d=google.com; s=arc-20160816; b=bLZRx7eDUfS5kz9EZZhRlAejhMHmXaR8m/jtyHTNgeJBqoMDBvNc4B5EsNQPqR4b1E nJPTzH220TvIWwiMISRZMPI/s6AYGxl9TsgjguodqDflQEcrsvEj2+UAXAh+ngCMsWe1 y0ld1pxVbN+i6B7M5V31uf82MP1Kk838ANgBrHNqW8zAU0tc0EjMBTubU4U06GRFNjNB a9K4qWtF4coLGVsjr1+gXBt6LY7n/O0txVRdbBVkPL5lRDRWozsBewXAiWEd0/rgpTzn wINaoinFWSRUJGt2QXAB9TqPyQ+Sd+KqPVqB+pfIEok3nROh3gTUfo2rSnMOXsxQVhUi rHjg== 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=32JDNSeqhHqyIaOh/qzFvhnj5b/m+w8QZFr6dtEN8Bw=; b=S0D+et/JYACAYFqgvpbUHhI5cjLy9iXn8S3K9lA8s2WfNCbi1O7EKOR/NQXQmkVIA5 PZknblGaJYgtwxIEZtK+Uwqj6Tc2loYBF24H/q/cawPTa8zRxMEx6duRI5B4oHxP8hzm LF8teRPmGZ6RoSp/aRxZMGarkAvoaGYs3F9vDExq3ceXK2kK+YRerJ/gwIK3p52hW9bk fyOA4zXK9pi5j2/rK9sFMyTQSmhg0qZqpYcm6kmHR8d98/1BbpGFxQMSLnAkq3CAfA5a 741eltpvZYi8ezzEIowKfGMof8CFbLMlU53tQWpSeMLVwMxZVM1e9WohG8yEGUL1IbLe erJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dTA8b5OU; 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 m17si7901091ejb.268.2020.12.13.10.43.24; Sun, 13 Dec 2020 10:43:48 -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=dTA8b5OU; 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 S2405399AbgLMLeu (ORCPT + 99 others); Sun, 13 Dec 2020 06:34:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgLMLeu (ORCPT ); Sun, 13 Dec 2020 06:34:50 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 099D4C0613CF; Sun, 13 Dec 2020 03:34:10 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id g20so18657713ejb.1; Sun, 13 Dec 2020 03:34:09 -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=32JDNSeqhHqyIaOh/qzFvhnj5b/m+w8QZFr6dtEN8Bw=; b=dTA8b5OUH5yKZKYvrwD8FPaAH1qo6ziTqTgli2eWV/QQwwjrj5RItxhiVtWCYn5J4r iU5u2+H3CEqrvgOG4ifSiMinjtA03OpWth2tg99EZKrbp/XHweTnJDEVAsFXw8BEi/2k 62/n48qL7LWG8Lg/TWLV8Ekvi2YV2XdqZDT6dMQ7h03xg9aGRIuNRGCnlY5Zc5d3YnN9 nNHTJNN2xuMH7nQvu9FSiVhtrlE/Mw87dMJ3GteW8ox/7IYneqfAWtuLpskhNM3GN80O a83qBHYHs8rA5sz+ldeezNiCzs60YSlz4P6KTdIerqBLo/hvBarQx+UVsAPAPvEcyL2G H9Ew== 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=32JDNSeqhHqyIaOh/qzFvhnj5b/m+w8QZFr6dtEN8Bw=; b=fGmOZF/3aIX19kouAoWpc4j9eiUCVf1Pki8Gr5NJoxshd8smoK8ftKzRwxG80RcZTC vLVd2LuvsuLyxPwi6vD6rCyq5iCjWv5BGoBSPRHIXQ9mpoVzsICebu4gWW67ZobBRUmr Q1bjOcjw1lR0MkelsSweCHRMiiD4rw9xuLtTkPAg7m1FnnvRbSJp6h4o7qoqx2WfDWfm 173Q7AnxGb2cnyezoSKVYGnqLJApT/C69VU8/Gn+KV54XvCPNHzzqa65qsiITfVotYjk XxvLz0zOLpUn78vIweCQ/M7DKoPt1sjToNF04fKCdGCHto9g4x8AuVbNlZRPZNIdvRV+ x3+w== X-Gm-Message-State: AOAM5338JOs4DDgRB5O0DvNyEvZluE5oZ/jUmMOI9aLaITvYAPm8YarQ jH+5r5Kv9eENGwXMH/yDjwE= X-Received: by 2002:a17:906:85cf:: with SMTP id i15mr10621618ejy.373.1607859248729; Sun, 13 Dec 2020 03:34:08 -0800 (PST) Received: from [192.168.0.107] ([77.127.34.194]) by smtp.gmail.com with ESMTPSA id r21sm1242331eds.91.2020.12.13.03.34.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Dec 2020 03:34:08 -0800 (PST) Subject: Re: [patch 22/30] net/mlx5: Replace irq_to_desc() abuse To: Thomas Gleixner , LKML Cc: Peter Zijlstra , Marc Zyngier , "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 , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, Saeed Mahameed , Leon Romanovsky , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org References: <20201210192536.118432146@linutronix.de> <20201210194044.769458162@linutronix.de> From: Tariq Toukan Message-ID: <02be0e10-f2b5-7cbb-3271-4d872616ffd4@gmail.com> Date: Sun, 13 Dec 2020 13:34:01 +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.769458162@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: > No driver has any business with the internals of an interrupt > descriptor. Storing a pointer to it just to use yet another helper at the > actual usage site to retrieve the affinity mask is creative at best. Just > because C does not allow encapsulation does not mean that the kernel has no > limits. > > Retrieve a pointer to the affinity mask itself and use that. It's still > using an interface which is usually not for random drivers, but definitely > less hideous than the previous hack. > > Signed-off-by: Thomas Gleixner > --- > drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 +- > drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 +- > drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 6 +----- > 3 files changed, 3 insertions(+), 7 deletions(-) > Reviewed-by: Tariq Toukan Thanks.