Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ocs_fc/ocs_device.c
Show First 20 Lines • Show All 1,232 Lines • ▼ Show 20 Lines | case OCS_EVT_ENTER: | ||||
ocs_node_hold_frames(node); | ocs_node_hold_frames(node); | ||||
break; | break; | ||||
case OCS_EVT_EXIT: | case OCS_EVT_EXIT: | ||||
ocs_node_accept_frames(node); | ocs_node_accept_frames(node); | ||||
break; | break; | ||||
case OCS_EVT_SPORT_TOPOLOGY_NOTIFY: { | case OCS_EVT_SPORT_TOPOLOGY_NOTIFY: { | ||||
ocs_sport_topology_e topology = (ocs_sport_topology_e)arg; | ocs_sport_topology_e topology = (ocs_sport_topology_e)(uintptr_t)arg; | ||||
ocs_assert(!node->sport->domain->attached, NULL); | ocs_assert(!node->sport->domain->attached, NULL); | ||||
ocs_assert(node->send_ls_acc == OCS_NODE_SEND_LS_ACC_PLOGI, NULL); | ocs_assert(node->send_ls_acc == OCS_NODE_SEND_LS_ACC_PLOGI, NULL); | ||||
node_printf(node, "topology notification, topology=%d\n", topology); | node_printf(node, "topology notification, topology=%d\n", topology); | ||||
/* At the time the PLOGI was received, the topology was unknown, | /* At the time the PLOGI was received, the topology was unknown, | ||||
* so we didn't know which node would perform the domain attach: | * so we didn't know which node would perform the domain attach: | ||||
* 1. The node from which the PLOGI was sent (p2p) or | * 1. The node from which the PLOGI was sent (p2p) or | ||||
* 2. The node to which the FLOGI was sent (fabric). | * 2. The node to which the FLOGI was sent (fabric). | ||||
▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines |