[dpdk-dev] [PATCH] kni: fix compilation under RHEL 7.5

Maxime Coquelin maxime.coquelin at redhat.com
Thu Apr 19 15:09:58 CEST 2018


Hi Luca, Yuanhan,

On 03/02/2018 12:20 AM, Lee Roberts wrote:
> Fix kni compilation under RHEL 7.5.
> 
> Signed-off-by: Lee Roberts <lee.roberts at hpe.com>
> ---
>   lib/librte_eal/linuxapp/kni/compat.h | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h
> index 3f8c0bc..6a6968d 100644
> --- a/lib/librte_eal/linuxapp/kni/compat.h
> +++ b/lib/librte_eal/linuxapp/kni/compat.h
> @@ -101,6 +101,11 @@
>   #undef NET_NAME_UNKNOWN
>   #endif
>   
> +#if (defined(RHEL_RELEASE_CODE) && \
> +	(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5)))
> +#define ndo_change_mtu ndo_change_mtu_rh74
> +#endif
> +
>   #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
>   #define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
>   #endif
> 

Any chance we pick these patches in stable branches so that
we can build them with RHEL 7.5 without disabling KNI?

I think it should apply cleanly on all of them, but I can send the
backport patches for each of them if necessary.

Thanks,
Maxime


More information about the dev mailing list