MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_comp_op_reset

Function rte_comp_op_reset

dpdk/lib/compressdev/rte_comp.c:67–77  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

65 * The operation to be reset
66 */
67static inline void
68rte_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.

Callers 2

rte_comp_op_allocFunction · 0.85
rte_comp_op_bulk_allocFunction · 0.85

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected