[PATCH v6 3/8] zsda: add support for queue operation

Stephen Hemminger stephen at networkplumber.org
Wed Sep 11 18:01:57 CEST 2024


On Wed, 11 Sep 2024 15:54:25 +0800
Hanxiao Li <li.hanxiao at zte.com.cn> wrote:

> +void
> +zsda_stats_reset(void **queue_pairs, const uint32_t nb_queue_pairs)
> +{
> +	enum zsda_service_type type;
> +	uint32_t i;
> +	struct zsda_qp *qp;
> +
> +	if (queue_pairs == NULL) {
> +		ZSDA_LOG(ERR, E_NULL);
> +		return;
> +	}
> +
> +	for (i = 0; i < nb_queue_pairs; i++) {
> +		qp = (struct zsda_qp *)queue_pairs[i

Cast is not needed here. In C (vs C++) assignment of void * is implicit cast.


More information about the dev mailing list