scsi: lpfc: Reduce memory footprint for lpfc_queue
Currently the driver maintains a sideband structure which has a pointer for each queue element. However, at 8 bytes per pointer, and up to 4k elements per queue, and 100s of queues, this can take up a lot of memory. Convert the driver to using an access routine that calculates the element address based on its index rather than using the pointer table. Signed-off-by:Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by:
James Smart <jsmart2021@gmail.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>
Showing
- drivers/scsi/lpfc/lpfc_debugfs.c 2 additions, 2 deletionsdrivers/scsi/lpfc/lpfc_debugfs.c
- drivers/scsi/lpfc/lpfc_debugfs.h 1 addition, 1 deletiondrivers/scsi/lpfc/lpfc_debugfs.h
- drivers/scsi/lpfc/lpfc_sli.c 29 additions, 26 deletionsdrivers/scsi/lpfc/lpfc_sli.c
- drivers/scsi/lpfc/lpfc_sli4.h 3 additions, 16 deletionsdrivers/scsi/lpfc/lpfc_sli4.h
Loading
Please register or sign in to comment