* Reset the fields of an operation to their default values. * * @note The private data associated with the operation is not zeroed. * * @param op * The operation to be reset */
| 65 | * The operation to be reset |
| 66 | */ |
| 67 | static inline void |
| 68 | rte_comp_op_reset(struct rte_comp_op *op) |
| 69 | { |
| 70 | struct rte_mempool *tmp_mp = op->mempool; |
| 71 | rte_iova_t tmp_iova_addr = op->iova_addr; |
| 72 | |
| 73 | memset(op, 0, sizeof(struct rte_comp_op)); |
| 74 | op->status = RTE_COMP_OP_STATUS_NOT_PROCESSED; |
| 75 | op->iova_addr = tmp_iova_addr; |
| 76 | op->mempool = tmp_mp; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Private data structure belonging to an operation pool. |
no test coverage detected