Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ocs_fc/ocs_xport.c
Show First 20 Lines • Show All 245 Lines • ▼ Show 20 Lines | if (ocs_hw_set(&ocs->hw, OCS_HW_N_SGL, n_sgl) != OCS_HW_RTN_SUCCESS) { | ||||
ocs_log_err(ocs, "%s: Can't set number of SGLs\n", ocs->desc); | ocs_log_err(ocs, "%s: Can't set number of SGLs\n", ocs->desc); | ||||
return -1; | return -1; | ||||
} else { | } else { | ||||
ocs_log_debug(ocs, "%s: Configured for %d SGLs\n", ocs->desc, n_sgl); | ocs_log_debug(ocs, "%s: Configured for %d SGLs\n", ocs->desc, n_sgl); | ||||
} | } | ||||
ocs_hw_get(&ocs->hw, OCS_HW_MAX_NODES, &max_remote_nodes); | ocs_hw_get(&ocs->hw, OCS_HW_MAX_NODES, &max_remote_nodes); | ||||
rc = ocs_node_create_pool(ocs, (ocs->max_remote_nodes) ? | if (!ocs->max_remote_nodes) | ||||
ocs->max_remote_nodes : max_remote_nodes); | ocs->max_remote_nodes = max_remote_nodes; | ||||
rc = ocs_node_create_pool(ocs, ocs->max_remote_nodes); | |||||
if (rc) { | if (rc) { | ||||
ocs_log_err(ocs, "Can't allocate node pool\n"); | ocs_log_err(ocs, "Can't allocate node pool\n"); | ||||
goto ocs_xport_attach_cleanup; | goto ocs_xport_attach_cleanup; | ||||
} else { | } else { | ||||
node_pool_created = TRUE; | node_pool_created = TRUE; | ||||
} | } | ||||
/* EVT: if testing chained SGLs allocate OCS_FC_MAX_SGL SGE's in the IO */ | /* EVT: if testing chained SGLs allocate OCS_FC_MAX_SGL SGE's in the IO */ | ||||
▲ Show 20 Lines • Show All 842 Lines • Show Last 20 Lines |