Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Node State Machine: Fabric States

Functions

void * __ocs_fabric_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Initial state. More...
 
void ocs_fabric_set_topology (ocs_node_t *node, ocs_sport_topology_e topology)
 Set sport topology. More...
 
void ocs_fabric_notify_topology (ocs_node_t *node)
 Notify sport topology. More...
 
void * __ocs_fabric_flogi_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for an FLOGI response. More...
 
void * __ocs_vport_fabric_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Initial state for a virtual port. More...
 
void * __ocs_fabric_fdisc_wait_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for an FDISC response. More...
 
void * __ocs_fabric_wait_domain_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Wait for a domain/sport attach event. More...
 
void * __ocs_fabric_idle (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Fabric node is idle. More...
 
void * __ocs_fabctl_init (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Initial state. More...
 
void * __ocs_fabctl_wait_node_attach (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for a node attach request to complete. More...
 
void * __ocs_fabctl_wait_scr_rsp (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for an SCR response from the fabric controller. More...
 
void * __ocs_fabctl_ready (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Ready. More...
 
void * __ocs_fabctl_wait_ls_acc_cmpl (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric controller node state machine: Wait for LS_ACC. More...
 
static void ocs_fabric_initiate_shutdown (ocs_node_t *node)
 Initiate fabric node shutdown. More...
 
static void * __ocs_fabric_common (const char *funcname, ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg)
 Fabric node state machine: Handle the common fabric node events. More...
 

Function Details

void* __ocs_fabctl_init ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric controller node state machine: Initial state.

Description
Issue a PLOGI to a well-known fabric controller address.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1258 of file ocs_fabric.c.

void* __ocs_fabctl_ready ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric controller node state machine: Ready.

Description
In this state, the fabric controller sends a RSCN, which is received by this node and is forwarded to the name services node object; and the RSCN LS_ACC is sent.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1400 of file ocs_fabric.c.

void* __ocs_fabctl_wait_ls_acc_cmpl ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric controller node state machine: Wait for LS_ACC.

Description
Waits for the LS_ACC from the fabric controller.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1441 of file ocs_fabric.c.

void* __ocs_fabctl_wait_node_attach ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric controller node state machine: Wait for a node attach request to complete.

Description
Wait for a node attach to complete. If successful, issue an SCR to the fabric controller, subscribing to all RSCN.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1300 of file ocs_fabric.c.

void* __ocs_fabctl_wait_scr_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric controller node state machine: Wait for an SCR response from the fabric controller.

Description
Waits for an SCR response from the fabric controller.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1359 of file ocs_fabric.c.

static void * __ocs_fabric_common ( const char *  funcname,
ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)
static

Fabric node state machine: Handle the common fabric node events.

Parameters
funcnameFunction name text.
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 1521 of file ocs_fabric.c.

void* __ocs_fabric_fdisc_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Wait for an FDISC response.

Description
Used for a virtual port. Waits for an FDISC response. If OK, issue a HAL port attach.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 324 of file ocs_fabric.c.

void* __ocs_fabric_flogi_wait_rsp ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Wait for an FLOGI response.

Description
Wait for an FLOGI response event.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 187 of file ocs_fabric.c.

void* __ocs_fabric_idle ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Fabric node is idle.

Description
Wait for fabric node events.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 446 of file ocs_fabric.c.

void* __ocs_fabric_init ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Initial state.

Description
Send an FLOGI to a well-known fabric.
Parameters
ctxRemote node sm context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 103 of file ocs_fabric.c.

void* __ocs_fabric_wait_domain_attach ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Wait for a domain/sport attach event.

Description
Waits for a domain/sport attach event.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 387 of file ocs_fabric.c.

void* __ocs_vport_fabric_init ( ocs_sm_ctx_t *  ctx,
ocs_sm_event_t  evt,
void *  arg 
)

Fabric node state machine: Initial state for a virtual port.

Description
State entered when a virtual port is created. Send FDISC.
Parameters
ctxRemote node state machine context.
evtEvent to process.
argPer event optional argument.
Returns
Returns NULL.

Definition at line 289 of file ocs_fabric.c.

static void ocs_fabric_initiate_shutdown ( ocs_node_t *  node)
static

Initiate fabric node shutdown.

Parameters
nodeNode for which shutdown is initiated.
Returns
Returns None.

Definition at line 1480 of file ocs_fabric.c.

void ocs_fabric_notify_topology ( ocs_node_t *  node)

Notify sport topology.

Description
notify sport topology.
Parameters
nodePointer to the node for which the topology is set.
Returns
Returns NULL.

Definition at line 156 of file ocs_fabric.c.

void ocs_fabric_set_topology ( ocs_node_t *  node,
ocs_sport_topology_e  topology 
)

Set sport topology.

Description
Set sport topology.
Parameters
nodePointer to the node for which the topology is set.
topologyTopology to set.
Returns
Returns NULL.

Definition at line 140 of file ocs_fabric.c.