kni: fix build with kernel 4.7
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 May 2016 11:22:32 +0000 (12:22 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Jun 2016 09:19:36 +0000 (11:19 +0200)
commite2dc61c806e3681d1f12300d62df9dcd4402190f
tree43862abc3c0bc3fe3ba92648c2853db877499372
parentc69601c4b591652d8091e8a216eb5030cbede10d
kni: fix build with kernel 4.7

Fix compile error because of Linux API change, 'trans_start' field
removed from 'struct net_device'.

Linux: 9b36627acecd ("net: remove dev->trans_start")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/compat.h
lib/librte_eal/linuxapp/kni/kni_net.c