Re: [PATCH] pci: irq: Add an early parameter to limit pci irq numbers

From: Jason Gunthorpe
Date: Wed May 31 2023 - 15:14:10 EST


On Mon, May 29, 2023 at 02:52:29PM +0800, Huacai Chen wrote:

> > But IMO what you are proposing seems like usecase driven and may not work all
> > the time due to architecture limitation. This again proves that the existing
> > solution is sufficient enough.

> Yes, it's a usecase driven solution, so I provide a cmdline parameter
> to let the user decide.

The NIC drivers should be consuming interrupts based on the number of
queues they are using, and that is something you can control from the
command line, eg ethtool IIRC. Usually it defaults to the number of
CPUs.

Basically, you want to enable the user to configure the system with a
user specified reduced number of NIC queues, and we already have way
to do that.

Jason