mbox series

[0/4] scsi fc FPIN event support

Message ID 20190405230423.4316-1-jsmart2021@gmail.com (mailing list archive)
Headers show
Series scsi fc FPIN event support | expand

Message

James Smart April 5, 2019, 11:04 p.m. UTC
The FC standard has defined a new Fabric Performance Impact
Notification (FPIN) ELS that can be sent from the fabric to an
endpoint to communicate fabric integrity information. The FPIN
may communicate congestion detection, link integrity issues, or
other similar conditions.

This patch set adds minimal support for the new FPIN ELS which is
still being worked in T11.  The base ELS format is defined
and scsi_transport_fc is updated to allow an lldd to pass it an
FPIN, which the transport will post as an fc event with the FPIN
payload. In the future, it may be interesting to parse the payload
and set attributes on different fc ports.

The last patch updates the lpfc driver to post a received FPIN.

These patches were cut from the 5.2/scsi-queue branch.

James Smart (4):
  scsi fc: add FPIN ELS definition
  scsi_transport_fc: refactor event posting routines
  scsi_transport_fc: Add FPIN fc event codes
  lpfc: add support for posting FC events on FPIN reception

 drivers/scsi/lpfc/lpfc_els.c     |   8 +++
 drivers/scsi/lpfc/lpfc_hw.h      |   4 ++
 drivers/scsi/scsi_transport_fc.c | 116 +++++++++++++++++++--------------------
 include/scsi/scsi_transport_fc.h |  13 ++++-
 include/uapi/scsi/fc/fc_els.h    |  33 +++++++++++
 5 files changed, 113 insertions(+), 61 deletions(-)

Comments

Ewan D. Milne April 8, 2019, 7:48 p.m. UTC | #1
On Fri, 2019-04-05 at 16:04 -0700, James Smart wrote:
> The FC standard has defined a new Fabric Performance Impact
> Notification (FPIN) ELS that can be sent from the fabric to an
> endpoint to communicate fabric integrity information. The FPIN
> may communicate congestion detection, link integrity issues, or
> other similar conditions.
> 
> This patch set adds minimal support for the new FPIN ELS which is
> still being worked in T11.  The base ELS format is defined
> and scsi_transport_fc is updated to allow an lldd to pass it an
> FPIN, which the transport will post as an fc event with the FPIN
> payload. In the future, it may be interesting to parse the payload
> and set attributes on different fc ports.
> 
> The last patch updates the lpfc driver to post a received FPIN.
> 
> These patches were cut from the 5.2/scsi-queue branch.
> 
> James Smart (4):
>   scsi fc: add FPIN ELS definition
>   scsi_transport_fc: refactor event posting routines
>   scsi_transport_fc: Add FPIN fc event codes
>   lpfc: add support for posting FC events on FPIN reception
> 
>  drivers/scsi/lpfc/lpfc_els.c     |   8 +++
>  drivers/scsi/lpfc/lpfc_hw.h      |   4 ++
>  drivers/scsi/scsi_transport_fc.c | 116 +++++++++++++++++++--------------------
>  include/scsi/scsi_transport_fc.h |  13 ++++-
>  include/uapi/scsi/fc/fc_els.h    |  33 +++++++++++
>  5 files changed, 113 insertions(+), 61 deletions(-)
> 

Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Martin K. Petersen April 9, 2019, 1:29 a.m. UTC | #2
James,

> The FC standard has defined a new Fabric Performance Impact
> Notification (FPIN) ELS that can be sent from the fabric to an
> endpoint to communicate fabric integrity information. The FPIN
> may communicate congestion detection, link integrity issues, or
> other similar conditions.

Applied to 5.2/scsi-queue, thanks!