kni: fix build with kernel 3.18
authorJincheng Miao <jmiao@redhat.com>
Wed, 10 Dec 2014 03:33:02 +0000 (11:33 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:02 +0000 (01:42 +0100)
commitee19d51ae56dcb685d9a04d9e859873d35565232
treec797e27f746d7a526a8d18adb7d3a35bbee72f34
parent6573369dd735c43930bfddec34124da05b1584df
kni: fix build with kernel 3.18

From upstream kernel commit 3db2e9cd, strict_strto* serial functions
are removed. So that we should directly used kstrtoul instead.

Add kni/compat.h to be compatible with older kernel.

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/kni/compat.h [new file with mode: 0644]
lib/librte_eal/linuxapp/kni/kni_vhost.c