summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-07-03 17:04:22 +0300
committerDavid S. Miller <davem@davemloft.net>2017-07-17 19:52:58 +0300
commitd4c023f4f3dd96734ef53d4b588136a872300046 (patch)
tree1dc1c172b99b7f1ad1747dac2c8ca393499f8fcc
parente078de03788353b220f3d501fc3607cc92db28c1 (diff)
downloadlinux-d4c023f4f3dd96734ef53d4b588136a872300046.tar.xz
net: Remove references to NETIF_F_UFO in netdev_fix_features().
It is going away. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/dev.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 9f3f4083ada5..467420eda02e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -7271,24 +7271,6 @@ static netdev_features_t netdev_fix_features(struct net_device *dev,
features &= ~NETIF_F_GSO;
}
- /* UFO needs SG and checksumming */
- if (features & NETIF_F_UFO) {
- /* maybe split UFO into V4 and V6? */
- if (!(features & NETIF_F_HW_CSUM) &&
- ((features & (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM)) !=
- (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM))) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no checksum offload features.\n");
- features &= ~NETIF_F_UFO;
- }
-
- if (!(features & NETIF_F_SG)) {
- netdev_dbg(dev,
- "Dropping NETIF_F_UFO since no NETIF_F_SG feature.\n");
- features &= ~NETIF_F_UFO;
- }
- }
-
/* GSO partial features require GSO partial be set */
if ((features & dev->gso_partial_features) &&
!(features & NETIF_F_GSO_PARTIAL)) {