[dpdk-dev] [PATCH] kni: fix vhost-kni compile errors

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Apr 11 19:04:10 CEST 2016


2016-04-11 17:54, Ferruh Yigit:
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
> +	    (!test_and_set_bit(SOCKWQ_ASYNC_NOSPACE, &q->sock->flags) &&
> +#else
>  	    (!test_and_set_bit(SOCK_ASYNC_NOSPACE, &q->sock->flags) &&
> +#endif

You could avoid some issues with backported feature by using
#ifdef SOCKWQ_ASYNC_NOSPACE


More information about the dev mailing list