dma/idxd: add completion status for page fault
Add a status for page faults to be used when getting the completion status of an operation. Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
This commit is contained in:
parent
681851b347
commit
fe1a5a9b42
@ -169,6 +169,8 @@ get_comp_status(struct idxd_completion *c)
|
||||
case IDXD_COMP_STATUS_INCOMPLETE:
|
||||
case IDXD_COMP_STATUS_SUCCESS:
|
||||
return RTE_DMA_STATUS_SUCCESSFUL;
|
||||
case IDXD_COMP_STATUS_PAGE_FAULT:
|
||||
return RTE_DMA_STATUS_PAGE_FAULT;
|
||||
case IDXD_COMP_STATUS_INVALID_OPCODE:
|
||||
return RTE_DMA_STATUS_INVALID_OPCODE;
|
||||
case IDXD_COMP_STATUS_INVALID_SIZE:
|
||||
|
@ -48,6 +48,7 @@ struct idxd_hw_desc {
|
||||
|
||||
#define IDXD_COMP_STATUS_INCOMPLETE 0
|
||||
#define IDXD_COMP_STATUS_SUCCESS 1
|
||||
#define IDXD_COMP_STATUS_PAGE_FAULT 0X03
|
||||
#define IDXD_COMP_STATUS_INVALID_OPCODE 0x10
|
||||
#define IDXD_COMP_STATUS_INVALID_SIZE 0x13
|
||||
#define IDXD_COMP_STATUS_SKIPPED 0xFF /* not official IDXD error, needed as placeholder */
|
||||
|
Loading…
Reference in New Issue
Block a user