Skip to content

Instantly share code, notes, and snippets.

@wangjiezhe
Created August 22, 2016 06:30
Show Gist options
  • Save wangjiezhe/c96211fe4ed95bf633366b314eafe504 to your computer and use it in GitHub Desktop.
Save wangjiezhe/c96211fe4ed95bf633366b314eafe504 to your computer and use it in GitHub Desktop.
--- r8168-8.042/src/r8168_n.c.orig 2016-08-22 14:22:48.694631079 +0800
+++ r8168-8.042/src/r8168_n.c 2016-08-22 14:24:53.279449184 +0800
@@ -4320,7 +4320,11 @@
features &= ~NETIF_F_ALL_TSO;
if (dev->mtu > ETH_DATA_LEN) {
features &= ~NETIF_F_ALL_TSO;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
features &= ~NETIF_F_ALL_CSUM;
+#else
+ features &= ~NETIF_F_CSUM_MASK;
+#endif
}
spin_unlock_irqrestore(&tp->lock, flags);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment