[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YO7SB4q9Q7S0lIbR@unreal>
Date: Wed, 14 Jul 2021 15:01:11 +0300
From: Leon Romanovsky <leonro@...dia.com>
To: Nitesh Narayan Lal <nitesh@...hat.com>
CC: <linux-kernel@...r.kernel.org>, <linux-scsi@...r.kernel.org>,
<intel-wired-lan@...ts.osuosl.org>, <netdev@...r.kernel.org>,
<linux-api@...r.kernel.org>, <linux-pci@...r.kernel.org>,
<tglx@...utronix.de>, <jesse.brandeburg@...el.com>,
<robin.murphy@....com>, <mtosatti@...hat.com>, <mingo@...nel.org>,
<jbrandeb@...nel.org>, <frederic@...nel.org>,
<juri.lelli@...hat.com>, <abelits@...vell.com>,
<bhelgaas@...gle.com>, <rostedt@...dmis.org>,
<peterz@...radead.org>, <davem@...emloft.net>,
<akpm@...ux-foundation.org>, <sfr@...b.auug.org.au>,
<stephen@...workplumber.org>, <rppt@...ux.vnet.ibm.com>,
<chris.friesen@...driver.com>, <maz@...nel.org>,
<nhorman@...driver.com>, <pjwaskiewicz@...il.com>,
<sassmann@...hat.com>, <thenzl@...hat.com>,
<kashyap.desai@...adcom.com>, <sumit.saxena@...adcom.com>,
<shivasharan.srikanteshwara@...adcom.com>,
<sathya.prakash@...adcom.com>, <sreekanth.reddy@...adcom.com>,
<suganath-prabu.subramani@...adcom.com>,
<james.smart@...adcom.com>, <dick.kennedy@...adcom.com>,
<jkc@...hat.com>, <faisal.latif@...el.com>,
<shiraz.saleem@...el.com>, <tariqt@...dia.com>,
<ahleihel@...hat.com>, <kheib@...hat.com>, <borisp@...dia.com>,
<saeedm@...dia.com>, <benve@...co.com>, <govind@....com>,
<jassisinghbrar@...il.com>, <ajit.khaparde@...adcom.com>,
<sriharsha.basavapatna@...adcom.com>, <somnath.kotur@...adcom.com>,
<nilal@...hat.com>, <tatyana.e.nikolova@...el.com>,
<mustafa.ismail@...el.com>, <ahs3@...hat.com>,
<chandrakanth.patil@...adcom.com>
Subject: Re: [PATCH v3 13/14] net/mlx5: Use irq_set_affinity_and_hint
On Tue, Jul 13, 2021 at 05:15:01PM -0400, Nitesh Narayan Lal wrote:
> The driver uses irq_set_affinity_hint() to update the affinity_hint mask
> that is consumed by the userspace to distribute the interrupts and to apply
> the provided mask as the affinity for the mlx5 interrupts. However,
> irq_set_affinity_hint() applying the provided cpumask as an affinity for
> the interrupt is an undocumented side effect.
>
> To remove this side effect irq_set_affinity_hint() has been marked
> as deprecated and new interfaces have been introduced. Hence, replace the
> irq_set_affinity_hint() with the new interface irq_set_affinity_and_hint()
> where the provided mask needs to be applied as the affinity and
> affinity_hint pointer needs to be set and replace with
> irq_update_affinity_hint() where only affinity_hint needs to be updated.
>
> Signed-off-by: Nitesh Narayan Lal <nitesh@...hat.com>
> ---
> drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists