[dpdk-dev] [PATCH v2 09/16] net/dpaa: support default queue mode

Shreyansh Jain shreyansh.jain at nxp.com
Fri Jul 6 07:28:48 CEST 2018


On Wednesday 04 July 2018 03:13 PM, Hemant Agrawal wrote:
> In case DPAA FMAN configuration tool (FMC) is not available.
> System can still work with default queue. (1 queue per port).

The commit message needs to reflect the fact this patch is also fixing 
some debugging logs which has not relation with default queue. Or, the 
patch should be split.

Also, the commit message can be rephrased for grammatical correctness:

"In case DPAA FMAN configuration tool is not availble, the system can 
still work with default queues (1 queue per port)."

> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
> ---
>   drivers/net/dpaa/dpaa_ethdev.c | 37 ++++++++++++++++++++++++++-----------
>   1 file changed, 26 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
> index 79ba6bd..def9483 100644
> --- a/drivers/net/dpaa/dpaa_ethdev.c
> +++ b/drivers/net/dpaa/dpaa_ethdev.c
> @@ -74,6 +74,7 @@ static uint64_t dev_tx_offloads_nodis =
>   
>   /* Keep track of whether QMAN and BMAN have been globally initialized */
>   static int is_global_init;
> +static int default_q;	/* use default queue - FMC is not executed*/
>   /* At present we only allow up to 4 push mode queues as default - as each of
>    * this queue need dedicated portal and we are short of portals.
>    */
> @@ -1026,12 +1027,12 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx,
>   
>   	ret = qman_reserve_fqid(fqid);
>   	if (ret) {
> -		DPAA_PMD_ERR("reserve rx fqid %d failed with ret: %d",
> +		DPAA_PMD_ERR("reserve rx fqid 0x%x failed with ret: %d",
>   			     fqid, ret);
>   		return -EINVAL;
>   	}
>   
> -	DPAA_PMD_DEBUG("creating rx fq %p, fqid %d", fq, fqid);
> +	DPAA_PMD_DEBUG("creating rx fq %p, fqid 0x%x", fq, fqid);
>   	ret = qman_create_fq(fqid, QMAN_FQ_FLAG_NO_ENQUEUE, fq);
>   	if (ret) {
>   		DPAA_PMD_ERR("create rx fqid 0x%x failed with ret: %d",
> @@ -1050,7 +1051,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx,
>   				      &cgr_opts);
>   		if (ret) {
>   			DPAA_PMD_WARN(
> -				"rx taildrop init fail on rx fqid %d (ret=%d)",
> +				"rx taildrop init fail on rx fqid 0x%x(ret=%d)",
>   				fqid, ret);
>   			goto without_cgr;
>   		}
> @@ -1061,7 +1062,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx,
>   without_cgr:
>   	ret = qman_init_fq(fq, flags, &opts);
>   	if (ret)
> -		DPAA_PMD_ERR("init rx fqid %d failed with ret: %d", fqid, ret);
> +		DPAA_PMD_ERR("init rx fqid 0x%x failed with ret:%d", fqid, ret);
>   	return ret;
>   }
>   
> @@ -1089,10 +1090,10 @@ static int dpaa_tx_queue_init(struct qman_fq *fq,
>   	/* no tx-confirmation */
>   	opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi;
>   	opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo;
> -	DPAA_PMD_DEBUG("init tx fq %p, fqid %d", fq, fq->fqid);
> +	DPAA_PMD_DEBUG("init tx fq %p, fqid 0x%x", fq, fq->fqid);
>   	ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts);
>   	if (ret)
> -		DPAA_PMD_ERR("init tx fqid %d failed %d", fq->fqid, ret);
> +		DPAA_PMD_ERR("init tx fqid 0x%x failed %d", fq->fqid, ret);
>   	return ret;
>   }
>   

All the above are not linked to default queue mode changes.

[...]




More information about the dev mailing list