[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200616080309.GA21210@infradead.org>
Date: Tue, 16 Jun 2020 01:03:09 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Nitesh Narayan Lal <nitesh@...hat.com>
Cc: linux-kernel@...r.kernel.org, frederic@...nel.org,
mtosatti@...hat.com, sassmann@...hat.com,
jeffrey.t.kirsher@...el.com, jacob.e.keller@...el.com,
jlelli@...hat.com
Subject: Re: [Patch v1] i40e: limit the msix vectors based on housekeeping
CPUs
On Mon, Jun 15, 2020 at 04:21:25PM -0400, Nitesh Narayan Lal wrote:
> + hk_flags = HK_FLAG_DOMAIN | HK_FLAG_WQ;
> + mask = housekeeping_cpumask(hk_flags);
> + cpus = cpumask_weight(mask);
Code like this has no business inside a driver. Please provide a
proper core API for it instead. Also please wire up
pci_alloc_irq_vectors* to use this API as well.
Powered by blists - more mailing lists