The related kernel function is: - pci_num_vf, it is introduced from upstream linux-2.6.34. For RHEL6's kernel, it is defined from RHEL6.0.
- kstrtoul, this function is united kernel API to replace strict_strtoul in the furture. It is introduced from linux-2.6.39. For RHEL6, it is defined from RHEL6.4. This patchset do some compatiblity work for these two functions, and replace strict_strtoul which is depleted from linux-3.18. v2: Merge these two patch in one patchset. Compatible with old kernel for kstrtoul. Compatible with RHEL6 for pci_num_vf. Jincheng Miao (2): igb_uio: compatible with upstream longterm kernel and RHEL6 eal: replace strict_strtoul with kstrtoul lib/librte_eal/linuxapp/igb_uio/compat.h | 12 +++++++++++- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 ++-- lib/librte_eal/linuxapp/kni/kni_vhost.c | 2 +- lib/librte_eal/linuxapp/xen_dom0/dom0_mm_misc.c | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-)