summarylogtreecommitdiffstats
path: root/linux-4.7.patch
blob: 7ca3c689353a83360dc4ef2ce2377bd8581e0ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/axusbnet.c b/axusbnet.c
index 26e7fcb..515ea34 100644
--- a/axusbnet.c
+++ b/axusbnet.c
@@ -1148,7 +1148,11 @@ axusbnet_start_xmit(struct sk_buff *skb, struct net_device *net)
 			devdbg(dev, "tx: submit urb err %d", retval);
 		break;
 	case 0:
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
 		net->trans_start = jiffies;
+#else
+		netif_trans_update(net);
+#endif
 		__skb_queue_tail(&dev->txq, skb);
 		if (dev->txq.qlen >= TX_QLEN(dev))
 			netif_stop_queue(net);
@@ -1470,4 +1474,3 @@ axusbnet_resume(struct usb_interface *intf)
 
 	return retval;
 }
-