* [RFC net-next 11/11] firewire net: Release broadcast/fifo resources on ifdown.
@ 2013-03-08 1:45 YOSHIFUJI Hideaki
0 siblings, 0 replies; only message in thread
From: YOSHIFUJI Hideaki @ 2013-03-08 1:45 UTC (permalink / raw)
To: stefanr, linux1394-devel; +Cc: netdev
Since those resources are allocated on ifup, relsase them on ifdown.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
drivers/firewire/net.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index ca41446..c1898ad 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -1295,9 +1295,12 @@ out:
/* ifdown */
static int fwnet_stop(struct net_device *net)
{
+ struct fwnet_device *dev = netdev_priv(net);
+
netif_stop_queue(net);
- /* Deallocate iso context for use by other applications? */
+ fwnet_broadcast_stop(dev);
+ fwnet_fifo_stop(dev);
return 0;
}
@@ -1638,9 +1641,6 @@ static int fwnet_remove(struct device *_dev)
if (list_empty(&dev->peer_list)) {
unregister_netdev(net);
- fwnet_fifo_stop(dev);
- fwnet_broadcast_stop(dev);
-
for (i = 0; dev->queued_datagrams && i < 5; i++)
ssleep(1);
WARN_ON(dev->queued_datagrams);
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-03-08 1:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 1:45 [RFC net-next 11/11] firewire net: Release broadcast/fifo resources on ifdown YOSHIFUJI Hideaki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.