[dpdk-dev] [RFC v2] sched: parameterize QoS traffic-classes and queues

Stephen Hemminger stephen at networkplumber.org
Fri Feb 16 21:09:54 CET 2018


On Fri, 16 Feb 2018 15:44:13 +0000
alangordondewar at gmail.com wrote:

>  
> +static inline uint32_t
> +rte_min_pos_n_u16(uint16_t *x, uint32_t n)
 The table (x) is const

> +{
> +	uint32_t index;
> +	uint32_t min_index = 0;
> +	uint16_t min_value = UINT16_MAX;
> +
> +	for (index = 0; index < n; index++) {
> +		if (x[index] < min_value) {
> +			min_value = x[index];
> +			min_index = index;
> +		}
> +	}
> +	return min_index;
> +}
> +
>  #endif
>  
>  /*


More information about the dev mailing list