From: Ferruh Yigit Date: Thu, 15 Sep 2016 12:06:44 +0000 (+0100) Subject: kni: fix debug build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d12bb413599eadb3d79b5dce2d19819d4cbb29d2;p=dpdk.git kni: fix debug build Fix build error with Linux kernel >= v4.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 --- diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c index fc82193a5c..371bbfa292 100644 --- a/lib/librte_eal/linuxapp/kni/kni_net.c +++ b/lib/librte_eal/linuxapp/kni/kni_net.c @@ -508,7 +508,7 @@ kni_net_tx_timeout (struct net_device *dev) struct kni_dev *kni = netdev_priv(dev); KNI_DBG("Transmit timeout at %ld, latency %ld\n", jiffies, - jiffies - dev->trans_start); + jiffies - dev_trans_start(dev)); kni->stats.tx_errors++; netif_wake_queue(dev);