src/dpdk/drivers/compress/isal/isal_compress_pmd_ops.c
static int
isal_comp_pmd_qp_set_unique_name(struct rte_compressdev *dev,
struct isal_comp_qp *qp)
{
	unsigned int n = snprintf(qp->name, sizeof(qp->name),
			"isal_comp_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
isal_comp_pmd_qp_set_unique_name(struct rte_compressdev *dev,
struct isal_comp_qp *qp)
{
	unsigned int n = snprintf(qp->name, sizeof(qp->name),
			"isal_comp_pmd_%u_qp_%u",
			dev->data->dev_id, qp->id);
	if (n >= sizeof(qp->name))
		return -1;
	return 0;
}
static int isal_comp_pmd_qp_set_unique_name ( struct rte_compressdev * dev , struct isal_comp_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 its name, dev_id and qp_id
set a unique name for the queue pair based on its name dev_id and qp_id