From: Olivier Matz <olivier.matz@6wind.com>
To: Bruce Richardson <bruce.richardson@intel.com>
Cc: dev@dpdk.org, adrien.mazarguil@6wind.com
Subject: Re: [dpdk-dev] [PATCH] mlx4: use dummy rxqs when a non-pow2 number is requested
Date: Thu, 24 Mar 2016 13:25:51 +0100 [thread overview]
Message-ID: <56F3DCCF.3@6wind.com> (raw)
In-Reply-To: <20160324122043.GC13728@bricha3-MOBL3>
Hi Bruce,
On 03/24/2016 01:20 PM, Bruce Richardson wrote:
>> @@ -734,12 +734,12 @@ dev_configure(struct rte_eth_dev *dev)
>> }
>> if (rxqs_n == priv->rxqs_n)
>> return 0;
>> - if ((rxqs_n & (rxqs_n - 1)) != 0) {
>> - ERROR("%p: invalid number of RX queues (%u),"
>> - " must be a power of 2",
>> + if (!rte_is_power_of_2(rxqs_n)) {
>> + WARN("%p: number of RX queues (%u), must be a"
>> + " power of 2: remaining queues will be inactive",
>
> I'm not sure how clear this warning message is. To the reader there are no
> extra "remaining" queues referred to, as it's not stated that the driver is
> allocating extra queues. How about e.g.:
>
> WARN("%p: number of RX queues on device must by a power of 2. Allocating %u
> queues, of which %u will be active. Remaining queues will be inactive"...)
>
You're right, I'll send a v2 with a clearer message.
Regards,
Olivier
next prev parent reply other threads:[~2016-03-24 12:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-21 16:08 Olivier Matz
2016-03-21 16:45 ` Adrien Mazarguil
2016-03-21 17:38 ` Wiles, Keith
2016-03-22 9:48 ` Olivier Matz
2016-03-22 14:27 ` Wiles, Keith
2016-04-15 9:11 ` Olivier Matz
2016-03-24 12:20 ` Bruce Richardson
2016-03-24 12:25 ` Olivier Matz [this message]
2016-03-25 10:24 ` [dpdk-dev] [PATCH v2] " Olivier Matz
2016-03-25 15:18 ` Bruce Richardson
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=56F3DCCF.3@6wind.com \
--to=olivier.matz@6wind.com \
--cc=adrien.mazarguil@6wind.com \
--cc=bruce.richardson@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).