提交 7802ac5c 编写于 作者: D David Brownell 提交者: Greg Kroah-Hartman

[PATCH] USB: minor gadget/rndis tweak

Resove a minor FIXME:  don't change MTU while RNDIS link is active,
the other end won't expect such things...
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 bae4bd84
......@@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_device *net, int new_mtu)
{
struct eth_dev *dev = netdev_priv(net);
// FIXME if rndis, don't change while link's live
if (dev->rndis)
return -EBUSY;
if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN)
return -ERANGE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册