]> git.pld-linux.org Git - packages/r8168.git/blob - linux-4.7.patch
- fix building with linux 4.7
[packages/r8168.git] / linux-4.7.patch
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;
9 +#endif
10                          dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO_64K;
11  #endif
12                  } else {
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;
19 +#endif
20                          dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO2;
21  #endif
22                  }
23 @@ -24970,7 +24974,11 @@
24          wmb();
25          txd->opts1 = cpu_to_le32(opts1);
26  
27 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
28          dev->trans_start = jiffies;
29 +#else
30 +        netif_trans_update(dev);
31 +#endif
32  
33          tp->cur_tx += frags + 1;
34  
This page took 0.060908 seconds and 3 git commands to generate.