scsi: fc: Update Descriptor definition and add RDF and Link Integrity FPINs
authorJames Smart <jsmart2021@gmail.com>
Mon, 10 Feb 2020 17:31:54 +0000 (09:31 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Feb 2020 05:07:57 +0000 (00:07 -0500)
commit73ec6d2748dc35db2b32cf3c182a27c4a0837b9b
treefcfb82a8b200f96fa1a18462c7aa3c1f8843a2ba
parent5693340143702ecf791521dc5d2afa81f3bf3ed8
scsi: fc: Update Descriptor definition and add RDF and Link Integrity FPINs

Update the FC headers for the RDF ELS and populate out the FPIN ELS and the
Link integrity FPIN payload.

RDF is used to register for diagnostic events.
FPIN is how the fabric reports a diagnostic event.

Specifically, this patch:

 - Adds the formal definition of TLV descriptors that are now used in a lot
   of the FC spec. The simplistic fc_fn_desc structure, basically no more
   than the tlv definition, is removed.

 - Small tlv helper functions are added as defines.

 - The list of known Descriptor tags (identifying the TLV) is expanded and
   a name initializer introduced.

 - The LSRI descriptor, returned in many new ELS response payloads is
   added.

 - The RDF ELS code is added, and the RDF request response structures
   added.

 - The FPIN els definition is corrected.

 - A full definition of a Link Integrity Notification descriptor is added,

[mkp: rolled in kbuild warning fix]

Link: https://lore.kernel.org/r/20200210173155.547-2-jsmart2021@gmail.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/uapi/scsi/fc/fc_els.h