kni: fix vhost build with kernels 4.2 and 4.4
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 Apr 2016 18:30:08 +0000 (19:30 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 20:49:31 +0000 (22:49 +0200)
commitdc10406f3e7c82d1dad2884ffae8745f2a11ab70
treed562d4354ac8816af1f28fbfe0f2e3fc5490336d
parent356445f97a28b66bce9e7300e21fdcfa7def55c9
kni: fix vhost build with kernels 4.2 and 4.4

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: is this to be a kernel socket?"

Reported-by: Chintu Hetam <rometoroam@gmail.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_vhost.c