• James Smart's avatar
    scsi: lpfc: Fix ELS field alignments · 1d755d64
    James Smart authored
    After seeing some interoperability issues with ADISC, it was determined the
    ELS definitions in lpfc were using types that allowed the compiler to add
    pad to the structure, causing the structure to no longer be per spec. The
    offending structures are ADISC, FAN, and RNID.
    
    This patch implements the simple fix of eliminating the pad by forcing the
    compiler to pack the structure. Care was taken to ensure field accesses
    won't be by operations that would hit a bad field alignment.
    
    The better solution would be to convert to the uapi fc header definitions,
    but the number of changes required to do is rather intrusive so this course
    of action was deferred.
    Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
    Signed-off-by: default avatarJames Smart <jsmart2021@gmail.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    1d755d64
lpfc_hw.h 127 KB