summarylogtreecommitdiffstats
path: root/linux-4.7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-4.7.patch')
-rw-r--r--linux-4.7.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/linux-4.7.patch b/linux-4.7.patch
new file mode 100644
index 000000000000..7ca3c689353a
--- /dev/null
+++ b/linux-4.7.patch
@@ -0,0 +1,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;
+ }
+-