[dpdk-dev] [PATCH v8 05/11] eal/linux: add interrupt vectors handling on VFIO

Liang, Cunming cunming.liang at intel.com
Wed May 27 11:00:07 CEST 2015



On 5/23/2015 4:21 AM, Stephen Hemminger wrote:
> On Thu, 21 May 2015 16:55:57 +0800
> Cunming Liang <cunming.liang at intel.com> wrote:
>
>> This patch does below:
>>   - Create VFIO eventfds for each interrupt vector (move to next)
>>   - Assign per interrupt vector's eventfd to VFIO by ioctl
>>
>> Signed-off-by: Danny Zhou <danny.zhou at intel.com>
>> Signed-off-by: Cunming Liang <cunming.liang at intel.com>
> One non-trivial performance related change here would be to set SMP
> affinity of the receive IRQ to the CPU that is handling that receive queue.
> Not sure the full API to do this, but ideally you should not have the
> receive interrupt occurring on one CPU then having to cause scheduler
> to wakeup receive thread on another CPU.
>
That's a good point. The previous thought was to configure irq affinity 
by script from outside.
I haven't found some API to do that well, the well known way is by sysfs.



More information about the dev mailing list