src/dpdk/drivers/crypto/openssl/rte_openssl_pmd_ops.c
static int
openssl_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
		struct openssl_qp *qp)
{
	unsigned int n = snprintf(qp->name, sizeof(qp->name),
			"openssl_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 it's name, dev_id and qp_id */
set a unique name for the queue pair based on it's name, dev_id and qp_id
set a unique name for the queue pair based on it ' s name dev_id and qp_id
static int
openssl_pmd_qp_set_unique_name(struct rte_cryptodev *dev,
		struct openssl_qp *qp)
{
	unsigned int n = snprintf(qp->name, sizeof(qp->name),
			"openssl_pmd_%u_qp_%u",
			dev->data->dev_id, qp->id);
	if (n >= sizeof(qp->name))
		return -1;
	return 0;
}
static int openssl_pmd_qp_set_unique_name ( struct rte_cryptodev * dev , struct openssl_qp * qp ) { unsigned int 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 it's name, dev_id and qp_id
set a unique name for the queue pair based on it ' s name dev_id and qp_id