[PATCH 2/3] net/dpaa2: clear active VDQ state when freeing Rx queues

Stephen Hemminger stephen at networkplumber.org
Thu Nov 6 20:29:11 CET 2025


On Thu,  6 Nov 2025 22:08:06 +0530
Hemant Agrawal <hemant.agrawal at nxp.com> wrote:

> +static void
> +dpaa2_clear_queue_active_dps(struct dpaa2_queue *q, int num_lcores)
> +{
> +	int i;
> +
> +	for (i = 0; i < num_lcores; i++) {
> +		struct queue_storage_info_t *qs = q->q_storage[i];
> +
> +		if (!qs)
> +			continue;
> +
> +		if (qs->active_dqs) {
> +			clear_swp_active_dqs(qs->active_dpio_id);
> +			qs->active_dqs = NULL;
> +		}
> +	}
> +}
> +

Why not use RTE_LCORE_FOREACH() here?


More information about the dev mailing list