aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wwan
diff options
context:
space:
mode:
authorSergey Ryazanov2021-06-22 01:50:54 +0300
committerDavid S. Miller2021-06-22 10:01:16 -0700
commitf492fccf3d62ba8e8b4d75d3f2ab82af25b18ffa (patch)
tree53ec5fbcec9d084fb973b8224a9a5a77238c8e22 /drivers/net/wwan
parent58c3b421c62edd30b0b660e3e6711ad91842c271 (diff)
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: Sergey Ryazanov <ryazanov.s.a@gmail.com> Reviewed-by: Loic Poulain <loic.poulain@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wwan')
-rw-r--r--drivers/net/wwan/wwan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c
index 1bd472195813..b6b9c52f617c 100644
--- a/drivers/net/wwan/wwan_core.c
+++ b/drivers/net/wwan/wwan_core.c
@@ -882,7 +882,7 @@ static void wwan_rtnl_dellink(struct net_device *dev, struct list_head *head)
if (wwandev->ops->dellink)
wwandev->ops->dellink(wwandev->ops_ctxt, dev, head);
else
- unregister_netdevice(dev);
+ unregister_netdevice_queue(dev, head);
out:
/* release the reference */