1 --- r8168-8.042.00/src/r8168_n.c.orig 2016-08-01 21:20:42.000000000 +0200
2 +++ r8168-8.042.00/src/r8168_n.c 2016-08-01 21:32:49.488072441 +0200
3 @@ -22800,7 +22800,9 @@
4 dev->hw_features &= ~NETIF_F_IPV6_CSUM;
5 netif_set_gso_max_size(dev, LSO_32K);
6 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
8 dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
10 dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO_64K;
13 @@ -22808,7 +22810,9 @@
14 dev->features |= NETIF_F_IPV6_CSUM | NETIF_F_TSO6;
15 netif_set_gso_max_size(dev, LSO_64K);
16 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
17 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
18 dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
20 dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO2;
23 @@ -24970,7 +24974,11 @@
25 txd->opts1 = cpu_to_le32(opts1);
27 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
28 dev->trans_start = jiffies;
30 + netif_trans_update(dev);
33 tp->cur_tx += frags + 1;