Commit 7802ac5c authored by David Brownell's avatar David Brownell Committed by 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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bae4bd84
...@@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_device *net, int new_mtu) ...@@ -1549,7 +1549,8 @@ static int eth_change_mtu (struct net_device *net, int new_mtu)
{ {
struct eth_dev *dev = netdev_priv(net); 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) if (new_mtu <= ETH_HLEN || new_mtu > ETH_FRAME_LEN)
return -ERANGE; return -ERANGE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment