[dpdk-dev] [PATCH] igb_uio: fix build for longterm kernel 2.6.32.63

2014-10-31 Thread Jincheng Miao
This patch will make RHEL6 build failed. The root cause is that RHEL-based kernel is slightly different with upstream kernel. It has some functions (pci_num_vf, kstrtoul, etc) which don't exist in upstream longterm kernel. For better compatibility, IMHO it is distinguishing RHEL-based kernel a

[dpdk-dev] [PATCH] igb_uio: fix build for longterm kernel 2.6.32.63

2014-10-31 Thread Thomas Monjalon
Hi Jincheng, 2014-10-31 09:54, Jincheng Miao: > This patch will make RHEL6 build failed. > > The root cause is that RHEL-based kernel is slightly different with > upstream kernel. > It has some functions (pci_num_vf, kstrtoul, etc) which don't exist in > upstream longterm kernel. Yes it seems

[dpdk-dev] [PATCH] igb_uio: fix build for longterm kernel 2.6.32.63

2014-10-30 Thread Jincheng Miao
There is a logical error in igb_uio/compat.h when define pci_num_vf(). Only CONFIG_PCI_IOV enabled, this function could be defined. This patch fix the following error for linux-2.6.32.63: CC [M] /root/dpdk-source/build/build/lib/librte_eal/linuxapp/igb_uio/igb_uio.o /root/dpdk-source/build/build/