diff options
author | Bill Durr | 2017-11-03 02:07:01 -0400 |
---|---|---|
committer | Bill Durr | 2017-11-03 02:07:01 -0400 |
commit | 06b618b0300fd57f6aa4b73b36ee6bc75c4a1f80 (patch) | |
tree | ca2f48afb1cff874026f1e106cc594272ba69b10 /0004_last_rx-4.11.patch | |
download | aur-06b618b0300fd57f6aa4b73b36ee6bc75c4a1f80.tar.gz |
recreate ceton infinitv driver package, add fixes for newer kernels
Diffstat (limited to '0004_last_rx-4.11.patch')
-rw-r--r-- | 0004_last_rx-4.11.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/0004_last_rx-4.11.patch b/0004_last_rx-4.11.patch new file mode 100644 index 000000000000..d21830c8bf30 --- /dev/null +++ b/0004_last_rx-4.11.patch @@ -0,0 +1,23 @@ +diff -urpN ceton_infinitv_linux_driver/ctn91xx_net.c ceton_infinitv_linux_driver-fixed/ctn91xx_net.c +--- ceton_infinitv_linux_driver/ctn91xx_net.c 2017-11-03 01:31:21.766659920 -0400 ++++ ceton_infinitv_linux_driver-fixed/ctn91xx_net.c 2017-11-03 01:34:20.161911675 -0400 +@@ -317,7 +317,9 @@ void ctn91xx_net_rx_skb( ctn91xx_dev_t* + skb->protocol = eth_type_trans( skb, netdev ); + netif_rx( skb ); + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0) + netdev->last_rx = jiffies; ++#endif + priv->stats.rx_bytes += rx_len; + priv->stats.rx_packets++; + +@@ -367,7 +369,9 @@ irqreturn_t ctn91xx_net_isr_ex(int irq, + skb->protocol = eth_type_trans( skb, netdev ); + netif_rx( skb ); + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0) + netdev->last_rx = jiffies; ++#endif + priv->stats.rx_bytes += rx_len; + priv->stats.rx_packets++; + } else { |