Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22d5969f authored by Michał Mirosław's avatar Michał Mirosław Committed by David S. Miller
Browse files

net: make WARN_ON in dev_disable_lro() useful

parent 2a9e9507
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1315,7 +1315,8 @@ void dev_disable_lro(struct net_device *dev)
		return;
		return;


	__ethtool_set_flags(dev, flags & ~ETH_FLAG_LRO);
	__ethtool_set_flags(dev, flags & ~ETH_FLAG_LRO);
	WARN_ON(dev->features & NETIF_F_LRO);
	if (unlikely(dev->features & NETIF_F_LRO))
		netdev_WARN(dev, "failed to disable LRO!\n");
}
}
EXPORT_SYMBOL(dev_disable_lro);
EXPORT_SYMBOL(dev_disable_lro);