[dpdk-dev] [PATCH 1/2] igb_uio: fix compability on old kernel

Sanford, Robert rsanford at akamai.com
Fri Aug 22 19:29:31 CEST 2014


Hi Thomas,

Not that I would *like* to fix this, but I *need* to fix it. We are using
CentOS 6.5, which I believe is based on RHEL. We have kernel
2.6.32-431.3.1.el6.x86_64.

I realize that we need to add/change ifdefs around pci_num_vf,
pci_intx_mask_supported, and pci_check_and_mask_intx in igb_uio/compat.h.
Any more specific suggestions on how to (elegantly) fix it for us, but not
break it for anyone else?

--
Regards,
Robert


>2014-07-25 10:36, Stephen Hemminger:
>> Add more compatibility wrappers, and split out all the wrapper
>> code to a separate file. Builds on Debian Squeeze (2.6.32) which
>> is oldest version of kernel current DPDK supports.
>> 
>> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
>
>Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
>
>Applied for version 1.7.1.
>
>There are still some compilation issues with RHEL:
>include/linux/pci.h:1572: note: previous declaration of Œpci_num_vf¹ was
>here
>include/linux/pci.h:868: note: previous declaration of
>Œpci_intx_mask_supported¹ was here
>include/linux/pci.h:869: note: previous declaration of
>Œpci_check_and_mask_intx¹ was here
>
>Some ifdefs are missing but I don't want to dig into RHEL kernel headers
>to
>find what is the first RHEL release to support these functions.
>By the way, if someone knows an easy method to get all RHEL kernel headers
>or to know the release where a symbol appeared, it would be very useful.
>
>-- 
>Thomas



More information about the dev mailing list