> + while ((ha->tgt.atio_ring_ptr->signature != ATIO_PROCESSED) ||
> +FCPCMD_IS_CORRUPTED(ha->tgt.atio_ring_ptr)) {
No need for the inner braces.
> +#define FCPCMD_IS_CORRUPTED(_a)
> \
> + ((_a->entry_type == ATIO_TYPE7) &&
From: Quinn Tran
Corrupted ATIO is defined as length of fcp_header & fcp_cmd
payload is less than 0x38. It's the minimum size for a frame to
carry 8..16 bytes SCSI CDB. The exchange will be dropped or
terminated if corrupted.
Signed-off-by: Quinn Tran
Signed-off-by: Himanshu Madhani
---
drive
2 matches
Mail list logo