[dpdk-dev] [PATCH v2] igb_uio: switch to pci_alloc_irq_vectors()

Nicolas Dichtel nicolas.dichtel at 6wind.com
Thu Apr 20 15:07:31 CEST 2017


Le 20/04/2017 à 13:59, Ferruh Yigit a écrit :
> On 4/20/2017 10:01 AM, Nicolas Dichtel wrote:
>> pci_enable_msix() will be removed in kernel 4.12. The new API is available
>> since linux 4.8, thus let's use it.
>>
>> Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aff171641d18
>> Link: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=4244de1c64de
>> Signed-off-by: Nicolas Dichtel <nicolas.dichtel at 6wind.com>
>> Reviewed-by: David Marchand <david.marchand at 6wind.com>
> 
> <...>
> 
>> +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
>> +#define HAVE_PCI_ENABLE_MSIX
>> +#endif
> 
> Would you mind moving this check to the end of the file, to preserve
> version check in increasing order (although I aware some doesn't fit this)?
No problem. I put this stuff here to keep pci_msix stuff together.


Regards,
Nicolas


More information about the dev mailing list