Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2017592pxu; Sun, 13 Dec 2020 10:42:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGWD729aJfmPjU4W5PTfbdjfSfzhuLZL0to9kw4IKTCbUOgjptlb2h5+RParJVbSjpbR6Q X-Received: by 2002:a05:6402:48d:: with SMTP id k13mr21427389edv.92.1607884958380; Sun, 13 Dec 2020 10:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607884958; cv=none; d=google.com; s=arc-20160816; b=wDBbNgs/fj8FN+Ns5FrtJbR6UDVFi7DmfHfQJCeMCHiOmpxDiPArwnq4NAYMqr9RAG C6fGiIFnDWzg09YYx4vpfnZp0iuaUEcpaqaP3DtBmqflCRqOVE5fOhVPeVEq6aLRQWW2 CVqxElNuf9Yph8YzOMeTnJKZNCCbE/1eo76Td/zfEJ7k6ke7iTUNJiqGXcNmf5Lfa0LF ssl+cGSNKpvQN3l+GGemdW6ffQQ+6nBIz4G0tJHwE1CxeNzZWqCW4VFiwk4QMUuaUkN2 ZbRBpM1MTmCLjdljHkaTLQZ34cyZvhpYuIDbCTZLIBjBsbHJsul2NHtsdBq+LPxekJiq 9beQ== 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=IW66fMc7VTs1PtxS+22ry7ms1/9mizOXCdVTfKV5hpo=; b=FUKoAVXlXtpmA9D0Owfg6N4m+OOVx5+rjntIzPtWG4m9jI/hmCn4IXcliF4jbwytkn ZEYw1DOjuZM7vjfi8MRrro7zWrqL2vWfwPOh1nD5kIfKsDsygiIF64kSlJhGdqZYjo+w UTmvQ1WQKJCi+6bmhNaHTTAm3jVeuArThhwLNWqwBQpvgevK3XKsjphtMxMoexM4fo+2 5b87cGmKJmXsTKIUomJQMWeLzBqudkNRF6kWI0gR8Rce64FXJLmkRDYnbOkZkztzxQJj qgjxv4uxuP5mEDdOlLcLvADRzWpzwlQDfkt9a14gp1AZwzJUD/9rsXQ3GWHbIZPrbXtQ 8SnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bQn+oB1J; 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 y2si8170303ejw.525.2020.12.13.10.42.16; Sun, 13 Dec 2020 10:42:38 -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=bQn+oB1J; 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 S1728529AbgLMLYv (ORCPT + 99 others); Sun, 13 Dec 2020 06:24:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgLMLYv (ORCPT ); Sun, 13 Dec 2020 06:24:51 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27F6C0613CF; Sun, 13 Dec 2020 03:24:10 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id 6so3980368ejz.5; Sun, 13 Dec 2020 03:24:10 -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=IW66fMc7VTs1PtxS+22ry7ms1/9mizOXCdVTfKV5hpo=; b=bQn+oB1JoyeFOF0nG/mlAluMS+9oNaqRxA17ZBM9Oe3AOE8/JG6goH/EB1c4QkEda4 T1lTzWqlfslNfkdjp202c07yMWPNGbIBbpqQZ+AzfJmqs+Kgj+dLxGZ+wWZGA5mc0NdB BijFlgEZnvzEJb3MGQPxQa2/dgeJuYhDvxuwz6QAxAIoRHfwl22d5quEoZXOhJp6a+qE ETivnglunAiRLTbK3ng7taHfwUqrNTJL3Mef8dDWPaAGgN2enm8bDppfomcBBDdM6fOw jt/C5/9LwS2YQBDgMwgsJ0z4C3ZaAE2+qiQJ4375nfTotPFrKA5zulfu7Q8I9D/Awk7+ 1yaQ== 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=IW66fMc7VTs1PtxS+22ry7ms1/9mizOXCdVTfKV5hpo=; b=BVBMTCn3Bvu5bU8u22YwrSx8UYIrLr1dn/Gtu7QCctWasiftRQClF1RfJ4Jide5z2/ oEbevEBznY4HqoeALxnXi/snXKW4lE+iHGRP/WO6+Sf4tO8t8uUs+qLpaH1MwAHNpjST 7cICSEyp2srchAP8d7jtWgTMNvk6g/WDXK0iLlUM6eQ1yOK5eqfCPXl6wejZhIxn8spN OtxPSqA6Zsp1kiSzRKxsKsc7prwux91PXGcVki2CZ9dR5KijWb8tZJ8Nhx4OgeqeJJ2n 5rYbYMBo9KQMgbYy4+1+7tclWUFLaU25ryFUH+kBxqSkZXQQAooPRicLP8pJtpMyntbE VKCg== X-Gm-Message-State: AOAM531B7l7ilylRnx7vVwCRaWZ3ILOCQdDgyAMfMKyzuFnW395gUQT8 1sE6TCaMzKMc6W+DxYtzQ4c= X-Received: by 2002:a17:906:a2d0:: with SMTP id by16mr18015254ejb.207.1607858649230; Sun, 13 Dec 2020 03:24:09 -0800 (PST) Received: from [192.168.0.107] ([77.127.34.194]) by smtp.gmail.com with ESMTPSA id de12sm12533753edb.82.2020.12.13.03.24.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Dec 2020 03:24:08 -0800 (PST) Subject: Re: [patch 20/30] net/mlx4: Replace irq_to_desc() abuse To: Thomas Gleixner , LKML Cc: Peter Zijlstra , Marc Zyngier , Tariq Toukan , "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 , Saeed Mahameed , Leon Romanovsky , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , xen-devel@lists.xenproject.org References: <20201210192536.118432146@linutronix.de> <20201210194044.580936243@linutronix.de> From: Tariq Toukan Message-ID: <01e427f9-7238-d6a8-25ec-8585914d32df@gmail.com> Date: Sun, 13 Dec 2020 13:24:00 +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.580936243@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 > Cc: Tariq Toukan > Cc: "David S. Miller" > Cc: Jakub Kicinski > Cc: netdev@vger.kernel.org > Cc: linux-rdma@vger.kernel.org > --- > drivers/net/ethernet/mellanox/mlx4/en_cq.c | 8 +++----- > drivers/net/ethernet/mellanox/mlx4/en_rx.c | 6 +----- > drivers/net/ethernet/mellanox/mlx4/mlx4_en.h | 3 ++- > 3 files changed, 6 insertions(+), 11 deletions(-) > Reviewed-by: Tariq Toukan Thanks for your patch.