kni: fix vhost build with kernel 4.1
authorMiguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Fri, 26 Jun 2015 22:14:37 +0000 (17:14 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 10 Jul 2015 09:59:07 +0000 (11:59 +0200)
commit8d8fb8aa5836e719d5fb896693b16afabd5118b9
tree1c306c44f1515c915b3b39ac9b7f5236747001c1
parentb90fcf82e8698c7031321c816d017a291f3ec914
kni: fix vhost build with kernel 4.1

Parameters from sendmsg and recvmsg has been changed in 4.1 kernel.
The function pointers belong to proto_ops structure were updated removing
the struct kiocb parameter.

Linux: 1b784140474e ("net: Remove iocb argument from sendmsg and recvmsg")

Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_eal/linuxapp/kni/compat.h
lib/librte_eal/linuxapp/kni/kni_vhost.c