scsi: mpt3sas: function pointers of request descriptor
This code refactoring introduces function pointers. Host uses Request Descriptors of different types for posting an entry onto a request queue. Based on controller type and capabilities, host can also use atomic descriptors other than normal descriptors. Using function pointer will avoid if-else statements Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
881a9a54da
commit
078a4cc138
@@ -1422,6 +1422,9 @@ struct MPT3SAS_ADAPTER {
|
||||
u8 is_gen35_ioc;
|
||||
u8 is_aero_ioc;
|
||||
PUT_SMID_IO_FP_HIP put_smid_scsi_io;
|
||||
PUT_SMID_IO_FP_HIP put_smid_fast_path;
|
||||
PUT_SMID_IO_FP_HIP put_smid_hi_priority;
|
||||
PUT_SMID_DEFAULT put_smid_default;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user