From a2bc5d7bcc11438404027c119e889f6cd4c2bdfa Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Tue, 4 May 2021 14:14:50 +0100 Subject: [PATCH] raw/ioat: expand descriptor struct to full 64 bytes Although it's unused by the driver, add the interrupt handle field in the descriptor to the descriptor structure for completeness, and explicitly add the reserved padding field on the end of the structure too. This means that when a descriptor is defined on the stack, or initialized by the compiler, the unused/reserved space will be zeroed appropriately. Signed-off-by: Bruce Richardson --- drivers/raw/ioat/rte_ioat_rawdev_fns.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/raw/ioat/rte_ioat_rawdev_fns.h b/drivers/raw/ioat/rte_ioat_rawdev_fns.h index c2c4601ca7..e96edc9053 100644 --- a/drivers/raw/ioat/rte_ioat_rawdev_fns.h +++ b/drivers/raw/ioat/rte_ioat_rawdev_fns.h @@ -140,7 +140,10 @@ struct rte_idxd_hw_desc { uint32_t size; /* length of data for op, or batch size */ - /* 28 bytes of padding here */ + uint16_t intr_handle; /* completion interrupt handle */ + + /* remaining 26 bytes are reserved */ + uint16_t __reserved[13]; } __rte_aligned(64); /** -- 2.20.1