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 4EA932FD7B1 for ; Wed, 13 Aug 2025 20:08:43 +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=1755115724; cv=none; b=aIgRJF/139UzGDLD6aEU9kxDXWt/grXuxFQMTOSpGWdVC3xxglmIrjfX62s7OhPWT09CGy7JeK5A/fr897zwReXWaQLfHTDDo84eropawf0Hw1gH7F2WVd4ifM9uLYfMzsNoKuUKBfc2W7uGeUgyowWIT4KdSfrxpH+gjlwphTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755115724; c=relaxed/simple; bh=Gcoswn0J/1qOggqoFsxTrwH0y1g9yqWsuvOu7HCvcZc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XnJgpLcskvzL8N8Fv/1Ko9Awl7k2sWM682nirapO+nIAfLlxhmoU80grK8aX9iixiz3k+cNNCR5jcGEXVkASUDGYNho5t/pKc7n3XDN9XjsQ/ZIu6cpuu6Gq77mIco02xJDO3chNdgMyrvBypc31psfI3vmvphariM6nLBqTy8A= 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=FRNxxTle; 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="FRNxxTle" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1755115722; 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=5JRk3yn3Askv8wda4/P5aQeyaHdr8Z99f60OEH4jfr0=; b=FRNxxTlejmwFYay159itZ4ly4PQCKtvSb6t7MFCsXUA5oKR8OuRQkRY8pGkgsVRPouA1Vr FH4UZ4CNQae0GapVz+qcxkouFBgaizwi2HFb6yvllyDX4el/hDqf5V+vfLSxsiCQImZdFy VhQz9scR8OUAtkZT6o9dAmoTDebK59s= 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-424-kO0Ax4JMPS2gjyE7JeKkAA-1; Wed, 13 Aug 2025 16:08:37 -0400 X-MC-Unique: kO0Ax4JMPS2gjyE7JeKkAA-1 X-Mimecast-MFC-AGG-ID: kO0Ax4JMPS2gjyE7JeKkAA_1755115715 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 0BE6618011C6; Wed, 13 Aug 2025 20:08:35 +0000 (UTC) Received: from bgurney-thinkpadp1gen5.remote.csb (unknown [10.44.32.39]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 74B4E180028F; Wed, 13 Aug 2025 20:08:28 +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, njavali@marvell.com, linux-scsi@vger.kernel.org, hare@suse.de, linux-hardening@vger.kernel.org, kees@kernel.org, gustavoars@kernel.org, bgurney@redhat.com, jmeneghi@redhat.com, emilne@redhat.com Subject: [PATCH v9 5/9] lpfc: enable FPIN notification for NVMe Date: Wed, 13 Aug 2025 16:07:40 -0400 Message-ID: <20250813200744.17975-6-bgurney@redhat.com> In-Reply-To: <20250813200744.17975-1-bgurney@redhat.com> References: <20250813200744.17975-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.4.1 on 10.30.177.93 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 Tested-by: Muneendra Kumar --- 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 c7cbc5b50dfe..146ed6fd41af 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" @@ -10249,9 +10250,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.50.1