From nobody Fri Mar 04 04:57:08 2022 X-Original-To: dev-commits-src-main@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 29A451A01F0B; Fri, 4 Mar 2022 04:57:09 +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 4K8wZD5WH3z3M1c; Fri, 4 Mar 2022 04:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646369828; 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=xHYRuIrNz8jrVnvEH8BNxwcRdkzotjDb3ewL7poE38Q=; b=BKm5KXpDQKmzHKFZolCcZzHPCu4ZlQGMX3Rs3p2/IzdqMqfIlEAONSFVumELd7IkynE5+8 wL31fuR/d+nE3bVgpZLf4j0SRPJ+nC1RZLD5cnBMaAd2moHLmj6aTgM4IPqPGu9QISdB3K GSRoaMMPL+CjwdbBOJEWTZv8J837SBpVD9dedOTx1R3XFR/vbWiwU/6cuHk56J7XGpzpxy bNXTdIuMNSaex2nsvMkAR1zQauwn/bThUYCZ8f6jSe4kLcIi1gF6PSVWxhEADWRyd4w907 CrzzP3/57ydEVEXhwcpkcoWi/Yrb/B/601MZtaUkTqBiltWg11rdk7KjmIHGPw== 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 8CC5F256F0; Fri, 4 Mar 2022 04:57:08 +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 2244v8rO070604; Fri, 4 Mar 2022 04:57:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2244v8KL070603; Fri, 4 Mar 2022 04:57:08 GMT (envelope-from git) Date: Fri, 4 Mar 2022 04:57:08 GMT Message-Id: <202203040457.2244v8KL070603@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ram Kishore Vegesna Subject: git: 57e4b677559a - main - ocs_fc: Do not respond to unsolicited NOP BLS command. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 57e4b677559a742031c7478d801c1e218afae239 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646369828; 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=xHYRuIrNz8jrVnvEH8BNxwcRdkzotjDb3ewL7poE38Q=; b=xDzf29L74V9UHL5hbFtyHdCXPn0pkibp8ZqQR9QYWiowYldaXSiuL+Q9WPW66Gxy4cHH76 Vk0oL4WY7fpAnPPJBZ81B9Bb/IzQ95tcxbN4kde+ROEqSxP3Qocfv+w0uHcJdWVmhQ4QUc VjtVke3K4CunXWkJGfMD3gsy8eozEkF+E2Pthia83KdzKla+OXjx3Ksg10WE/OjfamfTMq +MXostfAoDY4jnwv7nwHBORiILbGp/UvQuEGJIX3F4gUhF951viso37BBW5zzoyLE3zZoy 1QqhmvOn6icwzPlTzdvlXsENuR0a/M7HJHkbQCECjZL/tXkxDIbqSkw/Q8VUMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646369828; a=rsa-sha256; cv=none; b=fVfuKXvx49pNHMOuSLt6ELxj4OdaLJikpwxUe8AJ2iHkmU4MQgSKEGvVD5uv1t1YqsdyXG tIko3F8CbaVbKj7xPebggJxG0dC6BEUZPYZUM/vBZaPTyaF6k/PwnnBMebkTxVI9Isj/RV JUY1QBAJwGqVKb6vNiwaY065zl2ulsS78I8fmrf24W6qeJCDEBu955t3CsSP2LTkB3g+22 JME8ckx0PcG3yXZtWBL1w4jHW/ddpD8XamUpeakLFsqbKNrMI5wMBF+7+oBBKIsAyb0aTX ezgZbBSZyGn1g7jqsMgx8Go1APhoIMieIGAGVRCywvwsC+DkFvmOt/dhcMmxeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=57e4b677559a742031c7478d801c1e218afae239 commit 57e4b677559a742031c7478d801c1e218afae239 Author: Ram Kishore Vegesna AuthorDate: 2022-03-03 12:46:56 +0000 Commit: Ram Kishore Vegesna CommitDate: 2022-03-04 04:49:03 +0000 ocs_fc: Do not respond to unsolicited NOP BLS command. Summary: Drop unsolicited BLS commands other than ABTS. Reviewed by: mav MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34423 --- sys/dev/ocs_fc/ocs_unsol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ocs_fc/ocs_unsol.c b/sys/dev/ocs_fc/ocs_unsol.c index 12b600132c00..c6c9bab02bd8 100644 --- a/sys/dev/ocs_fc/ocs_unsol.c +++ b/sys/dev/ocs_fc/ocs_unsol.c @@ -690,7 +690,7 @@ ocs_node_dispatch_frame(void *arg, ocs_hw_sequence_t *seq) break; case FC_RCTL_BLS: - if (sit_set) { + if ((sit_set) && (hdr->info == FC_INFO_ABTS)) { rc = ocs_node_recv_abts_frame(node, seq); }else { rc = ocs_node_recv_bls_no_sit(node, seq);