mirror of https://github.com/ipxe/ipxe.git
[fc] Use a one-shot process for Fibre Channel ELS requests
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/5/head
parent
5694b71b11
commit
08ac74b708
|
@ -253,9 +253,6 @@ static void fc_els_step ( struct fc_els *els ) {
|
||||||
/* Sanity check */
|
/* Sanity check */
|
||||||
assert ( fc_els_is_request ( els ) );
|
assert ( fc_els_is_request ( els ) );
|
||||||
|
|
||||||
/* Stop process */
|
|
||||||
process_del ( &els->process );
|
|
||||||
|
|
||||||
/* Create exchange */
|
/* Create exchange */
|
||||||
if ( ( xchg_id = fc_xchg_originate ( &els->xchg, els->port,
|
if ( ( xchg_id = fc_xchg_originate ( &els->xchg, els->port,
|
||||||
&els->peer_port_id,
|
&els->peer_port_id,
|
||||||
|
@ -278,7 +275,7 @@ static void fc_els_step ( struct fc_els *els ) {
|
||||||
|
|
||||||
/** Fibre Channel ELS process descriptor */
|
/** Fibre Channel ELS process descriptor */
|
||||||
static struct process_descriptor fc_els_process_desc =
|
static struct process_descriptor fc_els_process_desc =
|
||||||
PROC_DESC ( struct fc_els, process, fc_els_step );
|
PROC_DESC_ONCE ( struct fc_els, process, fc_els_step );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create ELS transaction
|
* Create ELS transaction
|
||||||
|
|
Loading…
Reference in New Issue