提交 d4c023f4 编写于 作者: D David S. Miller

net: Remove references to NETIF_F_UFO in netdev_fix_features().

It is going away.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e078de03
...@@ -7271,24 +7271,6 @@ static netdev_features_t netdev_fix_features(struct net_device *dev, ...@@ -7271,24 +7271,6 @@ static netdev_features_t netdev_fix_features(struct net_device *dev,
features &= ~NETIF_F_GSO; 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 */ /* GSO partial features require GSO partial be set */
if ((features & dev->gso_partial_features) && if ((features & dev->gso_partial_features) &&
!(features & NETIF_F_GSO_PARTIAL)) { !(features & NETIF_F_GSO_PARTIAL)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册