From: Stephen Hemminger <stephen@networkplumber.org>
To: alangordondewar@gmail.com
Cc: cristian.dumitrescu@intel.com, dev@dpdk.org,
Alan Dewar <alan.dewar@att.com>
Subject: Re: [dpdk-dev] [RFC v2] sched: parameterize QoS traffic-classes and queues
Date: Fri, 16 Feb 2018 12:09:54 -0800 [thread overview]
Message-ID: <20180216120954.7c913074@xeon-e3> (raw)
In-Reply-To: <1518795853-7726-1-git-send-email-alan.dewar@att.com>
On Fri, 16 Feb 2018 15:44:13 +0000
alangordondewar@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
>
> /*
next prev parent reply other threads:[~2018-02-16 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 9:20 [dpdk-dev] [RFC] " alangordondewar
2017-10-05 10:19 ` Robertson, Alan
2017-10-06 9:12 ` Alan Dewar
2018-02-16 15:44 ` [dpdk-dev] [RFC v2] " alangordondewar
2018-02-16 20:09 ` Stephen Hemminger [this message]
2018-02-16 20:10 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180216120954.7c913074@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=alan.dewar@att.com \
--cc=alangordondewar@gmail.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).