From patchwork Thu Sep 15 12:06:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 15817 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: From: Ferruh Yigit To: dev@dpdk.org Cc: Ferruh Yigit Date: Thu, 15 Sep 2016 13:06:44 +0100 Message-Id: <1473941204-14587-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] kni: fix compilation error when debug enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 12:06:56 -0000 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 --- lib/librte_eal/linuxapp/kni/kni_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c index fc82193..371bbfa 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);