• James Smart's avatar
    scsi: lpfc: enhance LE data structure copies to hardware · 48f8fdb4
    James Smart authored
    The driver builds the control structures in host memory using
    definitions that are based on 32-bit words. After building the structure
    it is then written to the adapter.
    
    This patch slightly optimizes LE hosts by copying the structures via
    64-bit copies.  This is doable as the adapter interface is LE thus there
    is no byteswapping as the copy is performed.
    
    The same optimization would be nice on BE systems, but when byteswapping
    occurs, it swaps 32-bit words as well, thus trashing the control
    structure. Given amount of code that is dependent upon the 32-bit word
    definition, it was decided to not change things for the minor
    optimization. Thus PPC 64-bit systems sticks with doing 32-bit copies.
    Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
    Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    48f8fdb4
lpfc_sli.c 589 KB