Lines Matching refs:qp
90 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_stats_get() local
92 stats->enqueued_count += qp->qp_stats.enqueued_count; in null_crypto_pmd_stats_get()
93 stats->dequeued_count += qp->qp_stats.dequeued_count; in null_crypto_pmd_stats_get()
95 stats->enqueue_err_count += qp->qp_stats.enqueue_err_count; in null_crypto_pmd_stats_get()
96 stats->dequeue_err_count += qp->qp_stats.dequeue_err_count; in null_crypto_pmd_stats_get()
107 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_stats_reset() local
109 memset(&qp->qp_stats, 0, sizeof(qp->qp_stats)); in null_crypto_pmd_stats_reset()
136 struct null_crypto_qp *qp = dev->data->queue_pairs[qp_id]; in null_crypto_pmd_qp_release() local
138 if (qp->processed_pkts) in null_crypto_pmd_qp_release()
139 rte_ring_free(qp->processed_pkts); in null_crypto_pmd_qp_release()
150 struct null_crypto_qp *qp) in null_crypto_pmd_qp_set_unique_name() argument
152 unsigned n = snprintf(qp->name, sizeof(qp->name), in null_crypto_pmd_qp_set_unique_name()
154 dev->data->dev_id, qp->id); in null_crypto_pmd_qp_set_unique_name()
156 if (n >= sizeof(qp->name)) in null_crypto_pmd_qp_set_unique_name()
164 null_crypto_pmd_qp_create_processed_pkts_ring(struct null_crypto_qp *qp, in null_crypto_pmd_qp_create_processed_pkts_ring() argument
169 r = rte_ring_lookup(qp->name); in null_crypto_pmd_qp_create_processed_pkts_ring()
174 " processed packets", qp->name); in null_crypto_pmd_qp_create_processed_pkts_ring()
180 " processed packets", qp->name); in null_crypto_pmd_qp_create_processed_pkts_ring()
184 return rte_ring_create(qp->name, ring_size, socket_id, in null_crypto_pmd_qp_create_processed_pkts_ring()
195 struct null_crypto_qp *qp; in null_crypto_pmd_qp_setup() local
210 qp = rte_zmalloc_socket("Null Crypto PMD Queue Pair", sizeof(*qp), in null_crypto_pmd_qp_setup()
212 if (qp == NULL) { in null_crypto_pmd_qp_setup()
217 qp->id = qp_id; in null_crypto_pmd_qp_setup()
218 dev->data->queue_pairs[qp_id] = qp; in null_crypto_pmd_qp_setup()
220 retval = null_crypto_pmd_qp_set_unique_name(dev, qp); in null_crypto_pmd_qp_setup()
228 qp->processed_pkts = null_crypto_pmd_qp_create_processed_pkts_ring(qp, in null_crypto_pmd_qp_setup()
230 if (qp->processed_pkts == NULL) { in null_crypto_pmd_qp_setup()
236 qp->sess_mp = qp_conf->mp_session; in null_crypto_pmd_qp_setup()
237 qp->sess_mp_priv = qp_conf->mp_session_private; in null_crypto_pmd_qp_setup()
239 memset(&qp->qp_stats, 0, sizeof(qp->qp_stats)); in null_crypto_pmd_qp_setup()
244 if (qp) in null_crypto_pmd_qp_setup()
245 rte_free(qp); in null_crypto_pmd_qp_setup()