[PATCH 05/15] net/dpaa2: check free enqueue descriptors before Tx
Ferruh Yigit
ferruh.yigit at amd.com
Wed Oct 5 16:30:36 CEST 2022
On 9/28/2022 6:25 AM, Gagandeep Singh wrote:
> From: brick <brick.yang at nxp.com>
>
> Check if there exists free enqueue descriptors before enqueuing Tx
> packet. Also try to free enqueue descriptors in case they are not
> free.
>
> Fixes: ed1cdbed6a15 ("net/dpaa2: support multiple Tx queues enqueue for ordered")
> Cc: stable at dpdk.org
>
> Signed-off-by: brick <brick.yang at nxp.com>
Can you please use name tag as "Name Surname <email lower case>", like
Signed-off-by: Brick Yang <brick.yang at nxp.com>
<...>
> + DPAA2_PMD_DP_DEBUG("===> eth_data =%p, fqid =%d\n",
> + eth_data, dpaa2_q[loop]->fqid);
> +
> + /*Check if the queue is congested*/
syntax, more common to put space before/after '/* ' & ' */'
> + retry_count = 0;
> + while (qbman_result_SCN_state(dpaa2_q[loop]->cscn)) {
> + retry_count++;
> + /* Retry for some time before giving up */
> + if (retry_count > CONG_RETRY_COUNT)
> + goto send_frames;
> + }
> +
> + /*Prepare enqueue descriptor*/
ditto
More information about the stable
mailing list