From nobody Mon Mar 07 11:03:08 2022 X-Original-To: dev-commits-src-branches@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 C14841A02A75; Mon, 7 Mar 2022 11:03:08 +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 4KBwY82fKhz4S0m; Mon, 7 Mar 2022 11:03:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650988; 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=ZOi0DP45MMud9d1xZ8y0vz695ZFZdhuheMs3SRJiIh4=; b=fiIp1Fg8mk4OLzlWSQY8lY7HkLmIWfXqAWDpnr8mNU6v+TRGforet8ffhEgU4nI+Gtge39 jmLOzef6Uh7Txp/9Yd+n4JMs5yxU0VEpOMV0WMYIRN6mdZsptQINQ7R5y+GCAkLUWZ001o /ueD9yuFrXENG9c9IbERjoLv8gIqSXkncx/5P3Sa0emGTbBkyf+SvdyyvmaEFXLOEBYrJh HZcHOqc2A71w6D1y61dpGonREms1cauuco7Oze0BoFL6DFM7/IZd+xj0MA0xyhTz0C+Y9S +BgM1rIRlL6d4HVk/8777bIwV0tI1MgK2hlk6xEXHyFbPVNd/ku3QbOCxJHcZQ== 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 272E2270B7; Mon, 7 Mar 2022 11:03: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 227B38tX070677; Mon, 7 Mar 2022 11:03:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 227B38tP070676; Mon, 7 Mar 2022 11:03:08 GMT (envelope-from git) Date: Mon, 7 Mar 2022 11:03:08 GMT Message-Id: <202203071103.227B38tP070676@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: 4a90d6c823df - stable/13 - ocs_fc: Do not respond to unsolicited NOP BLS command. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 4a90d6c823df322112440d1294c91846d101b85a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646650988; 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=ZOi0DP45MMud9d1xZ8y0vz695ZFZdhuheMs3SRJiIh4=; b=ISo6QepMMe1XZvROrVIuIJqv9lPEnJhP7/1s4Uxm46CoLzZ/HxrW6tv+t7/RS3I7aoaoTB zvX72pZhq5ttqXMbHDSILzUqkrwTM4rDeOpg6GIXqVVf+E63WNuDm+jqXeMcMaO9M/dnf3 I0b6EHfPsYkdClTjjfkpTFCk5uIHMm73+LKyAJOXootFQP8l5bc6NXb52C782fnooRgH0K 62s9XkEr3BfdDTtWPU5tZrLlny11jlHXU1w38gfCXgGqXZWEuhLiz5jM2uz0VzcrqIyuFt qZsnMRU8howszdHXe1fuPZKJ5fogsAmI+aHnxAjB1vLDIu9DDY6Waj1hcdL6SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646650988; a=rsa-sha256; cv=none; b=oy9l/o8IdhiNIJ2VwkK+1agLBDDWoqKFJluPQ7bxw/NBdta4yqE3pCRhyO9rtlB3H9gPZO yWSCtDvl7l4V4NBLD5OB0408xzAhC/MosFCq3qn47gU2WJOfFr0rwrq72EYfHCmRfUWT3W 7JGCxsv2lwLNzXe2pNL4+8upHky4ezc+c6vVd+sMI6m/cq/RWI65ZPAHtQy6EqrixEzBLA 9o1Ze3wPKbB0d/2oWZdio87SDBc2ELxpIQWYr5uo9mbImBlkxSHKj1bMcsXfsN3Nu7GMib dDMJIMukMN798hYif9zL0Q7Fd4LgnZHo6BJBhO2h2rXKLG4NBtmNCWDnApbcnw== 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=4a90d6c823df322112440d1294c91846d101b85a commit 4a90d6c823df322112440d1294c91846d101b85a Author: Ram Kishore Vegesna AuthorDate: 2022-03-03 12:46:56 +0000 Commit: Ram Kishore Vegesna CommitDate: 2022-03-07 10:54:56 +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 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);