aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/dev.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index e5e23d785454..b3c574a88026 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5783,13 +5783,8 @@ int register_netdevice(struct net_device *dev)
5783 dev->features |= NETIF_F_SOFT_FEATURES; 5783 dev->features |= NETIF_F_SOFT_FEATURES;
5784 dev->wanted_features = dev->features & dev->hw_features; 5784 dev->wanted_features = dev->features & dev->hw_features;
5785 5785
5786 /* Turn on no cache copy if HW is doing checksum */
5787 if (!(dev->flags & IFF_LOOPBACK)) { 5786 if (!(dev->flags & IFF_LOOPBACK)) {
5788 dev->hw_features |= NETIF_F_NOCACHE_COPY; 5787 dev->hw_features |= NETIF_F_NOCACHE_COPY;
5789 if (dev->features & NETIF_F_ALL_CSUM) {
5790 dev->wanted_features |= NETIF_F_NOCACHE_COPY;
5791 dev->features |= NETIF_F_NOCACHE_COPY;
5792 }
5793 } 5788 }
5794 5789
5795 /* Make NETIF_F_HIGHDMA inheritable to VLAN devices. 5790 /* Make NETIF_F_HIGHDMA inheritable to VLAN devices.