scsi: fc: FDMI enhancement
authorJaved Hasan <jhasan@marvell.com>
Thu, 3 Jun 2021 12:16:23 +0000 (05:16 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Jun 2021 04:03:56 +0000 (00:03 -0400)
commit49d3e5996155a3067782748b0c4edf0309e951b6
tree3d2e5fdb56d4eb7c40d2fa9989b46713ef553d59
parent974db67a518b4f2ca690c29923abbbd9d5f1abfd
scsi: fc: FDMI enhancement

Added RHBA and RPA attributes type and length.

As per FC_GC_7 document section "Table 400 – Attribute Entry Types and
associated Values" ASCII type attributes length can be vary from "4 to 256
byte".  If we keep all RHBA ASCII attributes length 256 then total length
is going upto 2750, which is far more than 2048 (max frame size).

In libfc we do have logic to split FCP commands but not for CT commands.
Practically all version/names get covered with in 64 bytes except OS name,
for that we need 128 bytes.  Hence length of all RBHA ASCII attributes
is reduced to 64 bytes and 128 bytes in case of OS name.

RPA attributes total length is within frame size.

Link: https://lore.kernel.org/r/20210603121623.10084-6-jhasan@marvell.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/scsi/fc/fc_ms.h