]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/firewire/net.c
firewire: optimize iso queueing by setting wake only after the last packet
[mirror_ubuntu-zesty-kernel.git] / drivers / firewire / net.c
index 3f04dd3681cf7698bf5b8f377db07e84fb8c726c..b9762d07198d3a6fb4383ebc3fcc60c17c4a17c0 100644 (file)
@@ -881,7 +881,9 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,
 
        spin_unlock_irqrestore(&dev->lock, flags);
 
-       if (retval < 0)
+       if (retval >= 0)
+               fw_iso_context_queue_flush(dev->broadcast_rcv_context);
+       else
                fw_error("requeue failed\n");
 }