kni: fix build
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 7 Nov 2014 14:45:34 +0000 (15:45 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 10 Nov 2014 09:28:46 +0000 (10:28 +0100)
commit4ffab9b998c5456906546f49beef629df998718e
tree26be31fff2942535b3879e24284b2bec637b9086
parentb4bb86cc6aec332aaaa96c2e17ded51ee901f6ef
kni: fix build

Since commit 08b563ffb19 ("mbuf: replace data pointer by an offset"),
KNI vhost compilation (CONFIG_RTE_KNI_VHOST=y) was broken.

rte_pktmbuf_mtod() is not used in the kernel context but is replaced
by a simple addition of the base address and the offset.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/linuxapp/kni/kni_vhost.c