From nobody Mon Mar 07 11:03:05 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4701D1A02F21; Mon, 7 Mar 2022 11:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KBwY602FBz4S0Y; Mon, 7 Mar 2022 11:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UcIuX2U0K0u5Rs485aqnQQH1A0c9yX6g/jIP8Lxgrkg=; b=womkZ2DY6t4d1u3TuVc5pJ/CR3skoemNtM/Uexevyttfpn65RStaBAN1wfRgtnpUXgfTgN KvYQVimOSgUrpRoFaGTHhqOm0mdoBBE/JRPBQ1u0SARmbm4AABPQg0AxkpxiIZ33iG3C0b 4NfqpheE/EnilCId0QuJGxBNYtPbw5pACrb2bdesVnSMkUEi5yCfJNDC0scncMOsgdJP5c c7OWFA7Oxf4WVzPJmXqLBMPL9xixEUgVxH9NH8TevTcgnd33eOF1z9aP8Vy7+Tyv46oSj1 mElS/irdLi3rwlkssmo0ueq0IQe+Fpj8rosiHeAbhIne8cYZFbMiblp3xSxvJQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D584A270B6; Mon, 7 Mar 2022 11:03:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 227B35Nq070629; Mon, 7 Mar 2022 11:03:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227B35IN070628; Mon, 7 Mar 2022 11:03:05 GMT (envelope-from git) Date: Mon, 7 Mar 2022 11:03:05 GMT Message-Id: <202203071103.227B35IN070628@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ram Kishore Vegesna Subject: git: 927f2126d289 - stable/13 - ocs_fc: Ignore flogi failure when the discovery is already done. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ram X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 927f2126d28905cce350964984c72c5444f7d193 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UcIuX2U0K0u5Rs485aqnQQH1A0c9yX6g/jIP8Lxgrkg=; b=ShxdfZgBnT7ULgdMlDiK1VWD4LrTTfSFqP+StCCSOykYzMSUvoPEXX29d7o4iMDwnt4tL6 0Xdmaa88ZABoRUleDw3jBOqy2aEKQh+xuH1Fde5+Q86QOqV/A+umAin0qk0mVNKc4upHPK jJDOUIXmacQxnB9w1D0LYdPv6br0EDkvfQvPCWpOLQILEHUnN6Vf00NlPkjm1uvBihhjDv 93IfTzO9v3GuaXH2Hg+m/hnAIBVyiD/6oZ9SrIxzBhLE2e1RsX4zw7yYOkfx+xNX2ofkaH CSpQVnUBpCfLeLc6SQqRIRz1oQqGg8uBnhy13kcz4t+fQjI2RGPYyqHLWwZhRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646650986; a=rsa-sha256; cv=none; b=dgdVbtQpAPaB7Fj7tcjcbI03ArhrIp1NTVY5ObLAIMLDVWgu6N67dMBbF4CpVVARYu/IWE /nTaJ6YxfHWjCKQM6eTBCy4nhUgtp7XkJTcudpPBhdAoI+Romb4XCzFNE7toNzN733oPVw 4bgFm54nd9ZaV9hLRYGlgR9Wc2y8LCFNHTj/QEm1DxZlypAEPgyUwJbB+RfRiYq2PjVECt YoomlapKppq1aRV4CEWJngdnCWFBz7jahF52v7poSFHmfeN2AQy2gsyd75i7MuUhsbA77N L4LuQEoImB9v6Y5dNK5eZskrkfVodqn1IsF7LvexZ3QKrZf4VHQhcatEeK/1ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=927f2126d28905cce350964984c72c5444f7d193 commit 927f2126d28905cce350964984c72c5444f7d193 Author: Ram Kishore Vegesna AuthorDate: 2022-03-03 11:44:03 +0000 Commit: Ram Kishore Vegesna CommitDate: 2022-03-07 10:54:27 +0000 ocs_fc: Ignore flogi failure when the discovery is already done. Summary: Some targets are not responding to the FLOGI in point-to-point topology, If the pt2pt discovery is done, Ignore the FLOGI failure. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34422 (cherry picked from commit 79c56c9af583b4c6e079594b7b6ff8176e6bff7d) --- sys/dev/ocs_fc/ocs_fabric.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_fabric.c b/sys/dev/ocs_fc/ocs_fabric.c index 4a5d6820fcb6..70b240f5de13 100644 --- a/sys/dev/ocs_fc/ocs_fabric.c +++ b/sys/dev/ocs_fc/ocs_fabric.c @@ -228,10 +228,22 @@ __ocs_fabric_flogi_wait_rsp(ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *arg) 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; }