Skip to content

Commit 6926987

Browse files
davejiangvinodkoul
authored andcommitted
dmaengine: idxd: add descs_completed field for completion record
The descs_completed field for a completion record is part of a batch descriptor completion record. It takes the same location as bytes_completed in a normal descriptor field. Add to expose to user. Tested-by: Tony Zhu <tony.zhu@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Co-developed-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Link: https://lore.kernel.org/r/20230407203143.2189681-11-fenghua.yu@intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent c40bd7d commit 6926987

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

include/uapi/linux/idxd.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ struct dsa_completion_record {
314314
};
315315
uint8_t fault_info;
316316
uint8_t rsvd;
317-
uint32_t bytes_completed;
317+
union {
318+
uint32_t bytes_completed;
319+
uint32_t descs_completed;
320+
};
318321
uint64_t fault_addr;
319322
union {
320323
/* common record */

0 commit comments

Comments
 (0)