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

2016-04-11 Thread Thomas Monjalon
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

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

2016-04-11 Thread Ferruh Yigit
On 4/11/2016 6:04 PM, Thomas Monjalon wrote: > 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 >

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

2016-04-11 Thread Ferruh Yigit
fix vhost-kni compile errors because of Linux kernel API changes - SOCK_ASYNC_WAITDATA renamed to SOCKWQ_ASYNC_WAITDATA Linux commit id: 9cd3e072 Updated in Linux kernel 4.4 - sk_alloc() gets new parameter Linux commit id: 11aa9c28b Updated in Linux kernel 4.2 New parameter is: "@kern: