eal: reserve VFIO vector zero for misc interrupt
authorCunming Liang <cunming.liang@intel.com>
Wed, 4 Nov 2015 08:45:28 +0000 (16:45 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 13:20:36 +0000 (14:20 +0100)
commitb13bfab4cdbe5c3a483b37756a175743d4320090
treef1ea7d704bb24bf10b5e72531c3c1ca5765e488f
parente6a68c013353e19fc78a1fbee5142a94358bd738
eal: reserve VFIO vector zero for misc interrupt

During VFIO_DEVICE_SET_IRQS, the previous order is
{Q0_fd, ... Qn_fd, misc_fd}.
The vector number of misc is indeterminable which is
ugly to some NIC (e.g. i40e, fm10k).
The patch adjusts the order in {misc_fd, Q0_fd, ... Qn_fd},
always reserve the first vector to misc interrupt.

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/include/exec-env/rte_interrupts.h