OCS iSCSI connection management functions.
Definition in file ocs_cxn.c.
|
| void | ocs_mgmt_node_list (ocs_textbuf_t *textbuf, void *node) |
| |
| void | ocs_mgmt_node_get_all (ocs_textbuf_t *textbuf, void *node) |
| |
| int | ocs_mgmt_node_get (ocs_textbuf_t *textbuf, char *parent, char *name, void *node) |
| |
| int | ocs_mgmt_node_set (char *parent, char *name, char *value, void *node) |
| |
| int | ocs_mgmt_node_exec (char *parent, char *action, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length, void *node) |
| |
| static void * | __ocs_cxn_connect (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Connect to a remote node. More...
|
| |
| static void * | __ocs_cxn_connect_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for the connection to complete. More...
|
| |
| static void * | __ocs_cxn_connect_delay (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Connection to target failed, delay before retrying. More...
|
| |
| static void * | __ocs_cxn_get_info (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Get information on the connection. More...
|
| |
| static void * | __ocs_cxn_get_info_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for connection information request to complete. More...
|
| |
| static void * | __ocs_cxn_offload (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Offload the connection to the chip. More...
|
| |
| static void * | __ocs_cxn_offload_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for connection offload request to complete. More...
|
| |
| static void * | __ocs_cxn_reject (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Reject a connection after some connection protocol started. More...
|
| |
| static void * | __ocs_cxn_reject_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for connection reject request to complete. More...
|
| |
| static void * | __ocs_cxn_connected (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Connected, waiting for the teardown request. More...
|
| |
| static void * | __ocs_cxn_close_abort_io (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Aborts active IO objects on a connection. More...
|
| |
| static void * | __ocs_cxn_abort_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for the IO aborts to complete. More...
|
| |
| static void * | __ocs_cxn_close_abort_login (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Aborts any login transactions on a connection. More...
|
| |
| static void * | __ocs_cxn_close (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | Closes a TCP connection. More...
|
| |
| static void * | __ocs_cxn_close_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Closing, waiting for the close callback. More...
|
| |
| static void * | __ocs_cxn_upload (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Closing, waiting for the close callback. More...
|
| |
| static void * | __ocs_cxn_upload_wait (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Waiting for connection upload to complete. More...
|
| |
| static void * | __ocs_cxn_error (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | An error was received, something unexpected occurred. More...
|
| |
| static void | ocs_cxn_connect_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | This function is the callback for connecting to a target. More...
|
| |
| static void | ocs_cxn_close_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | This function is the callback for closing a connection. More...
|
| |
| static void | ocs_cxn_upload_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | This function is the callback for uploading a connection. More...
|
| |
| static void | ocs_cxn_get_info_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | Function to receive the notification that the connection info is available. More...
|
| |
| static void | ocs_cxn_offload_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | Function to receive the notification that the connection info is available. More...
|
| |
| static void | ocs_cxn_reject_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| | Function to receive the notification that the connection reject is complete. More...
|
| |
| int32_t | ocs_cxn_initialize (ocs_iscsi_t *iscsi) |
| | Initialize the iSCSI connection objects. More...
|
| |
| void | ocs_cxn_teardown (ocs_iscsi_t *iscsi) |
| | Free the iSCSI connection objects. More...
|
| |
| void | ocs_cxn_force_free (ocs_cxn_t *cxn) |
| | Free memory resources of a node object. More...
|
| |
| static void | ocs_cxn_transition (ocs_cxn_t *cxn, ocs_sm_function_t state, void *data) |
| | Transition state of a node. More...
|
| |
| static void | ocs_cxn_retry_timeout (void *arg) |
| | This function is called on timer expiration and sends an event to the the state machine. More...
|
| |
| static void | ocs_cxn_set_sm_retry_timer (ocs_cxn_t *cxn, uint32_t timeout) |
| | Set the SM timer to retry a command at a later time. More...
|
| |
| static void * | __ocs_cxn_common (const char *funcname, ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Common device event handler. More...
|
| |
| static void * | __ocs_cxn_initial (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) |
| | State: Initial state. More...
|
| |
| int32_t | ocs_cxn_connect (ocs_iscsi_t *iscsi, ocs_hal_ip_address_t *remote_ip, uint16_t tcp_port, char *tgt_name) |
| | Log an initiator into the specified target address. More...
|
| |
| int32_t | ocs_cxn_new_tgt_connection (ocs_iscsi_t *iscsi, uint32_t conn_hdl) |
| | Function to receive new TCP connections. More...
|
| |
| static void | ocs_tgt_cxn_invalidate_cb (void *ul_arg, int32_t status, uint32_t ext_status, void *params) |
| |
| void | ocs_tgt_cxn_invalidate (ocs_cxn_t *cxn) |
| |
| int32_t | ocs_cxn_close (ocs_cxn_t *cxn, uint8_t sendRst) |
| | Issues a request to the HAL to close the connection. More...
|
| |
| ocs_cxn_t * | ocs_cxn_alloc (ocs_iscsi_t *iscsi, uint32_t conn_hdl) |
| | Allocates a connection and initializes the fields as required. More...
|
| |
| int | ocs_ddump_node (ocs_textbuf_t *textbuf, ocs_node_t *node) |
| | Generate node ddump data. More...
|
| |