]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/core/dev.c
net offloading: Accept NETIF_F_HW_CSUM for all protocols.
[karo-tx-linux.git] / net / core / dev.c
index a215269d2e35b98b1e6070b3eee234035c84330d..d8befd06da04afd2c87d5631616c37816994cab9 100644 (file)
@@ -1734,7 +1734,7 @@ EXPORT_SYMBOL(netif_device_attach);
 
 static bool can_checksum_protocol(unsigned long features, __be16 protocol)
 {
-       return ((features & NETIF_F_NO_CSUM) ||
+       return ((features & NETIF_F_GEN_CSUM) ||
                ((features & NETIF_F_V4_CSUM) &&
                 protocol == htons(ETH_P_IP)) ||
                ((features & NETIF_F_V6_CSUM) &&