From: Hannes Reinecke <hare@suse.de>
To: Justin Tee <justintee8345@gmail.com>, Hannes Reinecke <hare@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>, Keith Busch <kbusch@kernel.org>,
Sagi Grimberg <sagi@grimberg.me>,
linux-nvme@lists.infradead.org,
Justin Tee <justin.tee@broadcom.com>,
James Smart <james.smart@broadcom.com>,
Dick Kennedy <dick.kennedy@broadcom.com>
Subject: Re: [PATCH 4/5] lpfc: enable FPIN notification for NVMe
Date: Wed, 7 May 2025 07:59:22 +0200 [thread overview]
Message-ID: <1c5cf65e-cdb8-413a-b1c9-5bdc570cc035@suse.de> (raw)
In-Reply-To: <CABPRKS-ns8r6vQW1a3cpyQYXO0FszKyngY6CJ6aHhHofpB0Ejg@mail.gmail.com>
On 5/6/25 23:50, Justin Tee wrote:
> Hi Hannes,
>
> Maybe the last tidbit from my previous email got lost. May we also
> exclude lpfc driver’s target mode from calling nvme_fc_fpin_rcv?
>
> diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
> index 396ed1a05bc9..09713cc57e94 100644
> --- a/drivers/scsi/lpfc/lpfc_els.c
> +++ b/drivers/scsi/lpfc/lpfc_els.c
> @@ -10253,7 +10253,8 @@ lpfc_els_rcv_fpin(struct lpfc_vport *vport,
> void *p, u32 fpin_length)
> 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)
> + if (vport->cfg_enable_fc4_type & LPFC_ENABLE_NVME &&
> + !phba->nvmet_support)
> nvme_fc_fpin_rcv(vport->localport,
> fpin_length, (char *)fpin);
> #endif
>
Sure we could. But it's not that the target mode does anything with the
marginal ports, so actual effects would be negligible.
Question, though: Why _should_ it be excluded? I would have thought that
the target would be interested in link integrity notifications, no?
(In general terms. Of course there is no code for it.)
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
next prev parent reply other threads:[~2025-05-07 6:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-06 15:35 [PATCHv4 0/5] nvme-fc: FPIN link integrity handling Hannes Reinecke
2025-05-06 15:35 ` [PATCH 1/5] fc_els: use 'union fc_tlv_desc' Hannes Reinecke
2025-05-06 21:51 ` Justin Tee
2025-05-06 15:35 ` [PATCH 2/5] nvme-fc: marginal path handling Hannes Reinecke
2025-05-06 15:35 ` [PATCH 3/5] nvme-fc: nvme_fc_fpin_rcv() callback Hannes Reinecke
2025-05-06 15:35 ` [PATCH 4/5] lpfc: enable FPIN notification for NVMe Hannes Reinecke
2025-05-06 21:50 ` Justin Tee
2025-05-07 5:59 ` Hannes Reinecke [this message]
2025-05-07 17:21 ` Justin Tee
2025-05-06 15:35 ` [PATCH 5/5] qla2xxx: " Hannes Reinecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1c5cf65e-cdb8-413a-b1c9-5bdc570cc035@suse.de \
--to=hare@suse.de \
--cc=dick.kennedy@broadcom.com \
--cc=hare@kernel.org \
--cc=hch@lst.de \
--cc=james.smart@broadcom.com \
--cc=justin.tee@broadcom.com \
--cc=justintee8345@gmail.com \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox