src/dpdk/drivers/crypto/dpaa_sec/dpaa_sec.c
static int
dpaa_sec_init_rx(struct qman_fq *fq_in, rte_iova_t hwdesc,
		 uint32_t fqid_out)
{
	struct qm_mcc_initfq fq_opts;
	uint32_t flags;
	int ret = -1;

	/* Clear FQ options */
	memset(&fq_opts, 0x00, sizeof(struct qm_mcc_initfq));

	flags = QMAN_INITFQ_FLAG_SCHED;
	fq_opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_CONTEXTA |
			  QM_INITFQ_WE_CONTEXTB;

	qm_fqd_context_a_set64(&fq_opts.fqd, hwdesc);
	fq_opts.fqd.context_b = fqid_out;
	fq_opts.fqd.dest.channel = dpaa_get_qm_channel_caam();
	fq_opts.fqd.dest.wq = 0;

	fq_in->cb.ern  = ern_sec_fq_handler;

	DPAA_SEC_DEBUG("in-%x out-%x", fq_in->fqid, fqid_out);

	ret = qman_init_fq(fq_in, flags, &fq_opts);
	if (unlikely(ret != 0))
		DPAA_SEC_ERR("qman_init_fq failed %d", ret);

	return ret;
}
/* initialize the queue with dest chan as caam chan so that
 * all the packets in this queue could be dispatched into caam
 */
initialize the queue with dest chan as caam chan so that
all the packets in this queue could be dispatched into caam
initialize the queue with dest chan as caam chan so that all the packets in this queue could be dispatched into caam
static int
dpaa_sec_init_rx(struct qman_fq *fq_in, rte_iova_t hwdesc,
		 uint32_t fqid_out)
{
	struct qm_mcc_initfq fq_opts;
	uint32_t flags;
	int ret = -1;
	memset(&fq_opts, 0x00, sizeof(struct qm_mcc_initfq));
	flags = QMAN_INITFQ_FLAG_SCHED;
	fq_opts.we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_CONTEXTA |
			  QM_INITFQ_WE_CONTEXTB;
	qm_fqd_context_a_set64(&fq_opts.fqd, hwdesc);
	fq_opts.fqd.context_b = fqid_out;
	fq_opts.fqd.dest.channel = dpaa_get_qm_channel_caam();
	fq_opts.fqd.dest.wq = 0;
	fq_in->cb.ern  = ern_sec_fq_handler;
	DPAA_SEC_DEBUG("in-%x out-%x", fq_in->fqid, fqid_out);
	ret = qman_init_fq(fq_in, flags, &fq_opts);
	if (unlikely(ret != 0))
		DPAA_SEC_ERR("qman_init_fq failed %d", ret);
	return ret;
}
static int dpaa_sec_init_rx ( struct qman_fq * fq_in , rte_iova_t hwdesc , uint32_t fqid_out ) { struct qm_mcc_initfq fq_opts ; uint32_t flags ; int ret = -1 ; memset ( & fq_opts , 0x00 , sizeof ( struct qm_mcc_initfq ) ) ; flags = QMAN_INITFQ_FLAG_SCHED ; fq_opts . we_mask = QM_INITFQ_WE_DESTWQ | QM_INITFQ_WE_CONTEXTA | QM_INITFQ_WE_CONTEXTB ; qm_fqd_context_a_set64 ( & fq_opts . fqd , hwdesc ) ; fq_opts . fqd . context_b = fqid_out ; fq_opts . fqd . dest . channel = dpaa_get_qm_channel_caam ( ) ; fq_opts . fqd . dest . wq = 0 ; fq_in -> cb . ern = ern_sec_fq_handler ; DPAA_SEC_DEBUG ( " " , fq_in -> fqid , fqid_out ) ; ret = qman_init_fq ( fq_in , flags , & fq_opts ) ; if ( unlikely ( ret != 0 ) ) DPAA_SEC_ERR ( " " , ret ) ; return ret ; }
initialize the queue with dest chan as caam chan so that
 all the packets in this queue could be dispatched into caam
initialize the queue with dest chan as caam chan so that all the packets in this queue could be dispatched into caam
/* Clear FQ options */