Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132029275
D34422.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34422.id.diff
View Options
diff --git a/sys/dev/ocs_fc/ocs_fabric.c b/sys/dev/ocs_fc/ocs_fabric.c
--- a/sys/dev/ocs_fc/ocs_fabric.c
+++ b/sys/dev/ocs_fc/ocs_fabric.c
@@ -228,10 +228,22 @@
if (node_check_els_req(ctx, evt, arg, FC_ELS_CMD_FLOGI, __ocs_fabric_common, __func__)) {
return NULL;
}
- node_printf(node, "FLOGI failed evt=%s, shutting down sport [%s]\n", ocs_sm_event_name(evt),
- sport->display_name);
ocs_assert(node->els_req_cnt, NULL);
node->els_req_cnt--;
+ if (node->sport->domain->attached) {
+ node_printf(node, "FLOGI failed, Domain already attached\n");
+ if (node->sport->p2p_winner) {
+ node_printf(node, "p2p winner, domain already attached\n");
+ ocs_node_post_event(node, OCS_EVT_DOMAIN_ATTACH_OK, NULL);
+ } else {
+ node_printf(node, "peer p2p winner, shutdown node\n");
+ node->shutdown_reason = OCS_NODE_SHUTDOWN_DEFAULT;
+ ocs_fabric_initiate_shutdown(node);
+ }
+ break;
+ }
+ node_printf(node, "FLOGI failed evt=%s, shutting down sport [%s]\n", ocs_sm_event_name(evt),
+ sport->display_name);
ocs_sm_post_event(&sport->sm, OCS_EVT_SHUTDOWN, NULL);
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 14, 2:12 AM (17 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23679420
Default Alt Text
D34422.id.diff (1 KB)
Attached To
Mode
D34422: ocs_fc: Ignore flogi failure when the discovery is already done.
Attached
Detach File
Event Timeline
Log In to Comment