To be more sure that no more input arrives at the local port as
it is being destroyed, clean the queues in the per-cpu receive
threads.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
/* tear-down the FCoE controller */
fcoe_ctlr_destroy(&fc->ctlr);
+ /* Free queued packets for the per-CPU receive threads */
+ fcoe_percpu_clean(lp);
+
/* Cleanup the fc_lport */
fc_lport_destroy(lp);
fc_fcp_destroy(lp);
if (lp->emp)
fc_exch_mgr_free(lp->emp);
- /* Free the per-CPU receive threads */
- fcoe_percpu_clean(lp);
-
/* Free existing skbs */
fcoe_clean_pending_queue(lp);