From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 923051C84DF for ; Tue, 24 Jun 2025 20:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750796603; cv=none; b=Y5+uv8r7AmbymWPN5ZWWarQ9p1HSWiGP3Fq0YV15wnKcTS49u6HHtExvduySQgWd1vCARTpcAHk2WQyOF1af3P7tyHM65Tgls/46kuNnQ5hYDSSY+69a6KqZV5LQsbtW/cIh2E8L5C+gtmTjbjL0CnWSrq1jKfuWUAWGcfg/+/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750796603; c=relaxed/simple; bh=5Gjrf/8TSC1Wo1AyY42o5JZp5CQ472s+ulBndMDcJfg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uIt6v5MY8aO0nI43M/NldL4Y6ZSmo4NHNuFAeUVIUd6D66/UqHAS+PDPfXlH9iEqgIcNgvTik0OUUpvmJqLifW3gK5vOZxC71pntiFqm1Ix+FuDFAnPQ4SSCCO5+fTxKF/jGJAegMWCFnFiNHxn+teLh5zgiULIS02s/p4TXvSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=fW38jW3Q; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fW38jW3Q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1750796600; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LZHCVpRfqA1ZoANSnSbT28oQCdLRuu6wzz22Z7s4YUQ=; b=fW38jW3QCDIlXMB/kvZTuMpTI024gn7U0HEj2BmOK5pq4QAQSR0lx+zq0hBg9O6N32pNp6 3hDe42rR36TtQMHfYCRbJZUxqezyFupkZbMzS9HBQvzJhHNnCeOCyyw08TExAuaT63tXHm hXeFQNO7yjSobmRwXAqQgFk8RGsZmPw= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-nNHBxwYfOwm5JM0KNCy5sQ-1; Tue, 24 Jun 2025 16:23:18 -0400 X-MC-Unique: nNHBxwYfOwm5JM0KNCy5sQ-1 X-Mimecast-MFC-AGG-ID: nNHBxwYfOwm5JM0KNCy5sQ_1750796597 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B9D0318089B5; Tue, 24 Jun 2025 20:23:16 +0000 (UTC) Received: from bgurney-thinkpadp1gen5.remote.csb (unknown [10.45.226.95]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4E50119560A3; Tue, 24 Jun 2025 20:23:10 +0000 (UTC) From: Bryan Gurney To: linux-nvme@lists.infradead.org, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, axboe@kernel.dk Cc: james.smart@broadcom.com, dick.kennedy@broadcom.com, njavali@marvell.com, linux-scsi@vger.kernel.org, hare@suse.de, bgurney@redhat.com, jmeneghi@redhat.com Subject: [PATCH v7 4/6] lpfc: enable FPIN notification for NVMe Date: Tue, 24 Jun 2025 16:20:18 -0400 Message-ID: <20250624202020.42612-5-bgurney@redhat.com> In-Reply-To: <20250624202020.42612-1-bgurney@redhat.com> References: <20250624202020.42612-1-bgurney@redhat.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 From: Hannes Reinecke Call 'nvme_fc_fpin_rcv()' to enable FPIN notifications for NVMe. Signed-off-by: Hannes Reinecke Reviewed-by: Justin Tee Tested-by: Bryan Gurney --- drivers/scsi/lpfc/lpfc_els.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 959603ab939a..396ed1a05bc9 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "lpfc_hw4.h" #include "lpfc_hw.h" @@ -10248,9 +10249,15 @@ lpfc_els_rcv_fpin(struct lpfc_vport *vport, void *p, u32 fpin_length) fpin_length += sizeof(struct fc_els_fpin); /* the entire FPIN */ /* Send every descriptor individually to the upper layer */ - if (deliver) + if (deliver) { fc_host_fpin_rcv(lpfc_shost_from_vport(vport), fpin_length, (char *)fpin, 0); +#if (IS_ENABLED(CONFIG_NVME_FC)) + if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME) + nvme_fc_fpin_rcv(vport->localport, + fpin_length, (char *)fpin); +#endif + } desc_cnt++; } } -- 2.49.0