Skip to content

Commit fb231d7

Browse files
cp890582martinkpetersen
authored andcommitted
scsi: mpi3mr: Support for preallocation of SGL BSG data buffers part-2
The driver acquires the required SGLs from the pre-allocated pool. Co-developed-by: Sathya Prakash <sathya.prakash@broadcom.com> Signed-off-by: Sathya Prakash <sathya.prakash@broadcom.com> Signed-off-by: Chandrakanth patil <chandrakanth.patil@broadcom.com> Link: https://lore.kernel.org/r/20231205191630.12201-3-chandrakanth.patil@broadcom.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent c432e16 commit fb231d7

2 files changed

Lines changed: 313 additions & 85 deletions

File tree

drivers/scsi/mpi3mr/mpi3mr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ struct mpi3mr_buf_map {
247247
u32 kern_buf_len;
248248
dma_addr_t kern_buf_dma;
249249
u8 data_dir;
250+
u16 num_dma_desc;
251+
struct dma_memory_desc *dma_desc;
250252
};
251253

252254
/* IOC State definitions */

0 commit comments

Comments
 (0)