src/dpdk/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c
static int
snow3g_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
		struct snow3g_qp *qp)
{
	unsigned n = snprintf(qp->name, sizeof(qp->name),
			"snow3g_pmd_%u_qp_%u",
			dev->data->dev_id, qp->id);

	if (n >= sizeof(qp->name))
		return -1;

	return 0;
}
/** set a unique name for the queue pair based on its name, dev_id and qp_id */
set a unique name for the queue pair based on its name, dev_id and qp_id
set a unique name for the queue pair based on its name dev_id and qp_id
static int
snow3g_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
		struct snow3g_qp *qp)
{
	unsigned n = snprintf(qp->name, sizeof(qp->name),
			"snow3g_pmd_%u_qp_%u",
			dev->data->dev_id, qp->id);
	if (n >= sizeof(qp->name))
		return -1;
	return 0;
}
static int snow3g_pmd_qp_set_unique_name ( struct rte_cryptodev * dev , struct snow3g_qp * qp ) { unsigned n = snprintf ( qp -> name , sizeof ( qp -> name ) , " " , dev -> data -> dev_id , qp -> id ) ; if ( n >= sizeof ( qp -> name ) ) return -1 ; return 0 ; }
set a unique name for the queue pair based on its name, dev_id and qp_id
set a unique name for the queue pair based on its name dev_id and qp_id