X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=kernel%2Flinux%2Figb_uio%2Fcompat.h;fp=lib%2Flibrte_eal%2Flinuxapp%2Figb_uio%2Fcompat.h;h=b4131a5c8752bf042aa84011614a8c8be43d59b3;hb=15dedf321036ae67c61f35a3ab55de767b07801f;hp=ce456d4bb7d8c0dbc040d8ab3b6776c26f663684;hpb=9f3a8cb4cfe59ea63e267f69700fb0fde13d7dd3;p=deb_dpdk.git diff --git a/lib/librte_eal/linuxapp/igb_uio/compat.h b/kernel/linux/igb_uio/compat.h similarity index 96% rename from lib/librte_eal/linuxapp/igb_uio/compat.h rename to kernel/linux/igb_uio/compat.h index ce456d4b..b4131a5c 100644 --- a/lib/librte_eal/linuxapp/igb_uio/compat.h +++ b/kernel/linux/igb_uio/compat.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Minimal wrappers to allow compiling igb_uio on older kernels. */ @@ -121,6 +122,10 @@ static bool pci_check_and_mask_intx(struct pci_dev *pdev) #endif /* < 3.3.0 */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) +#define HAVE_PCI_IS_BRIDGE_API 1 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0) #define HAVE_ALLOC_IRQ_VECTORS 1 #endif