From nobody Mon Mar 07 11:00:39 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 245D91A01FB6; Mon, 7 Mar 2022 11:00:41 +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 4KBwVJ2b3Tz3wFs; Mon, 7 Mar 2022 11:00:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650840; 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=IuKBRfmwzP1EFNWBfcCsruqchPVuQXJv7AHZ5g6S1r4=; b=htaNESgCn84rgrKoQjDywC4YjHNSGa5w9z2oHs5e1pFOFlYP7sVlfFHDRkhfUudG2ESgnk KXUty98otoq1567qErMcuYHADPSt+YSXpmf6e4CMmbxDz0a3/KHJQqS0dAEn4ab8Rz6Kmo RJDra6mbGkMagMwLLIWLMugxNwT6VpVU/B8kZkY880dux34X3uwq78pKBXqhOs1h0VPJ0I ifBFlrv+NKAQxx5mwEZCRF459cREjmaq2KVLhgUkLJXNsw/wfsLPfPrQxPgxGRpf7tG3Xs Km0zYAoWvBV3p2q9Pudohe+gp+us3HFrJax6Rz7KauHMD/GsZyjbJ64d830njQ== 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 16FC126B7F; Mon, 7 Mar 2022 11:00:40 +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 227B0d8d066177; Mon, 7 Mar 2022 11:00:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227B0dCe066176; Mon, 7 Mar 2022 11:00:39 GMT (envelope-from git) Date: Mon, 7 Mar 2022 11:00:39 GMT Message-Id: <202203071100.227B0dCe066176@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: 6e71c95f11d1 - stable/12 - ocs_fc: Do not respond to unsolicited NOP BLS command. 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/12 X-Git-Reftype: branch X-Git-Commit: 6e71c95f11d171dfe4f8962ea0ca3dca7e260776 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650840; 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=IuKBRfmwzP1EFNWBfcCsruqchPVuQXJv7AHZ5g6S1r4=; b=mMxYo4xLr3FhXsV8jjDim8ymj/aos9bpsHlbBcaWQC/+jrULpNUfKy67NOA039d9Sn0g1p o3oY3l6wd/f64WTpGHEIxLc7ijVJxuhPHgrVtinQrd0l+9sk9bhV6QqIXRIK198KuxPg9f /O5OXtUClQrJVr+1XMuFU+DipiBsalMOxDjkoOi4csATVJ2Fp8Uwk4qdln3Gv/f7SKbrn8 cuboKbMzjg+viGNYIcrm0gmQKBF/ue5IVz8pbx2mLIC4T50iDbwROWKFL3FwyJI8LJP43f KpV2PKMLIyYl7n/uwAHCFZ5pmh2MbayIU+EDUqlbNQqJXPhqNxaAe1S19aEjzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646650840; a=rsa-sha256; cv=none; b=k/VFKCCTP8JScIZp9G9WRUJuJF0gVSoysd5Ct6J5yancSagtOIPqu54W0X6AvjSkrQjX1T VAj+dkffC/WXoagOcZINAtjFOnptABf3bokcptwdLtzN3YiqfCwwzwBhX1vYMQ5iB1hjwA UkMtSt5E+h7s/r//Yh5V70Nhkz2ppJgiM2Lbrdn7pITx4PAi2kGq8pXnZOxx946PUYE7cw Xw/RUGd0/l74pdzNSF+Zoquzf1gclNTPSYBiRu+LCF7F4kx3XkzZcc1f1wx1FLf2IDBlnd 8XmsKkFJGUtuJiyHy41/Q49iL3F0O130BkvTrf9b1rtBResL7iM+lBGyYox4Gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=6e71c95f11d171dfe4f8962ea0ca3dca7e260776 commit 6e71c95f11d171dfe4f8962ea0ca3dca7e260776 Author: Ram Kishore Vegesna AuthorDate: 2022-03-03 12:46:56 +0000 Commit: Ram Kishore Vegesna CommitDate: 2022-03-07 10:51:23 +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 (cherry picked from commit 57e4b677559a742031c7478d801c1e218afae239) --- 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 d84442dd6495..dd85fd934d6f 100644 --- a/sys/dev/ocs_fc/ocs_unsol.c +++ b/sys/dev/ocs_fc/ocs_unsol.c @@ -693,7 +693,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);