Commit 7499f529 authored by Federico Vaga's avatar Federico Vaga

kernel: fix trans_start usage according to kernel version

The trans_start field from net_device has been removed.

commit 9b36627acecd5792e81daf1a3bff8eab39ed45fb
Author: Florian Westphal <>
Date:   Tue May 3 16:33:14 2016 +0200

    net: remove dev->trans_start
commit 860e9538a9482bb84589f7d0718a7e6d0a944d58
Author: Florian Westphal <>
Date:   Tue May 3 16:33:13 2016 +0200

    treewide: replace dev->trans_start update with helper
Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent 276d0cb1
......@@ -17,6 +17,7 @@
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <linux/net_tstamp.h>
#include <linux/version.h>
#include <asm/unaligned.h>
#include "wr-nic.h"
......@@ -209,8 +210,11 @@ static int wrn_start_xmit(struct sk_buff *skb, struct net_device *dev)
/* We are done, this is trivial maiintainance*/
ep->stats.tx_bytes += len;
dev->trans_start = jiffies;
//spin_unlock_irqrestore(&ep->lock, flags);
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment