[RFC] export irq_set/get_affinity() for multiqueue network drivers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: <netdev@...>
Date: Thursday, August 28, 2008 - 4:21 pm

Hello,

Is there any way to setup IRQ masks from within a driver? myri10ge
currently relies on an external script (writing in
/proc/irq/*/smp_affinity) to bind each queue/MSI-X to a different
processor. By default, Linux will either:
* round-robin the interrupts (killing the benefit of DCA for instance)
* put all IRQs on the same CPU (killing much of the benefit of multislices)

With more and more drivers using multiqueues, I think we need a nice way
to bind MSI-X from within the drivers. I am not sure what's best, the
attached (untested) patch would just export the existing
irq_set_affinity() and add irq_get_affinity(). Comments?

thanks,
Brice

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] export irq_set/get_affinity() for multiqueue network d..., Brice Goglin, (Thu Aug 28, 4:21 pm)
Re: [RFC] export irq_set/get_affinity() for multiqueue netwo..., Arjan van de Ven, (Fri Aug 29, 12:52 pm)