Commit f492fccf authored by Sergey Ryazanov's avatar Sergey Ryazanov Committed by David S. Miller

wwan: core: multiple netdevs deletion support

Use unregister_netdevice_queue() instead of simple
unregister_netdevice() if the WWAN netdev ops does not provide a dellink
callback. This will help to accelerate deletion of multiple netdevs.
Signed-off-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
Reviewed-by: default avatarLoic Poulain <loic.poulain@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58c3b421
...@@ -882,7 +882,7 @@ static void wwan_rtnl_dellink(struct net_device *dev, struct list_head *head) ...@@ -882,7 +882,7 @@ static void wwan_rtnl_dellink(struct net_device *dev, struct list_head *head)
if (wwandev->ops->dellink) if (wwandev->ops->dellink)
wwandev->ops->dellink(wwandev->ops_ctxt, dev, head); wwandev->ops->dellink(wwandev->ops_ctxt, dev, head);
else else
unregister_netdevice(dev); unregister_netdevice_queue(dev, head);
out: out:
/* release the reference */ /* release the reference */
......
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