]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fc] Use a one-shot process for Fibre Channel name server queries
authorMichael Brown <mcb30@ipxe.org>
Fri, 24 Jun 2011 16:17:49 +0000 (17:17 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jun 2011 13:45:10 +0000 (14:45 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/fcns.c

index afb57cfe957d3c8add547f5e5a889df5e0e1e834..55bd29e51aad386fe38178a947c012f9b911d16b 100644 (file)
@@ -161,9 +161,6 @@ static void fc_ns_query_step ( struct fc_ns_query *query ) {
        int xchg_id;
        int rc;
 
-       /* Stop process */
-       process_del ( &query->process );
-
        /* Create exchange */
        if ( ( xchg_id = fc_xchg_originate ( &query->xchg, query->port,
                                             &fc_gs_port_id,
@@ -208,7 +205,7 @@ static struct interface_descriptor fc_ns_query_xchg_desc =
 
 /** Name server process descriptor */
 static struct process_descriptor fc_ns_query_process_desc =
-       PROC_DESC ( struct fc_ns_query, process, fc_ns_query_step );
+       PROC_DESC_ONCE ( struct fc_ns_query, process, fc_ns_query_step );
 
 /**
  * Issue Fibre Channel name server query