From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Shahed Shaikh <shahed.shaikh@qlogic.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
Dept_NX_Linux_NIC_Driver@qlogic.com,
Manish Chopra <manish.chopra@qlogic.com>
Subject: Re: [PATCH net-next v2 3/7] qlcnic: Enhanced channel configuration logs
Date: Wed, 17 Apr 2013 21:48:01 +0400 [thread overview]
Message-ID: <516EE051.3030808@cogentembedded.com> (raw)
In-Reply-To: <1366218359-17701-4-git-send-email-shahed.shaikh@qlogic.com>
Hello.
On 04/17/2013 09:05 PM, Shahed Shaikh wrote:
> From: Manish Chopra <manish.chopra@qlogic.com>
>
> Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
> Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
[...]
> diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
> index edbc85f..f35c504 100644
> --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
> +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
> @@ -3240,20 +3240,41 @@ qlcnicvf_start_firmware(struct qlcnic_adapter *adapter)
> return err;
> }
>
> -int qlcnic_validate_max_rss(u8 max_hw, u8 val)
> +int qlcnic_validate_max_rss(struct qlcnic_adapter *adapter,
> + __u32 val)
> {
[...]
> - if ((val > max_allowed) || (val < 2) || !is_power_of_2(val)) {
> - pr_info("rss_ring valid range [2 - %x] in powers of 2\n",
> - max_allowed);
> +
> + if ((val > max_allowed) || (val < 2) || !is_power_of_2(val)) {
Too many spaces between < and 2. And () not needed around > and <.
This line overall looks like random unneeded change.
> + if (val > num_online_cpus())
> + netdev_err(netdev,
> + "RSS value should not be higher than[%u], the max number of CPUs in the system\n",
> + num_online_cpus());
num_online_cpus() doesn't yield the max number of CPUs in the system,
it yields what it says, number of online CPUs.
WBR, Sergei
next prev parent reply other threads:[~2013-04-17 17:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-17 17:05 [PATCH net-next v2 0/7] Bug fixes and enhancements Shahed Shaikh
2013-04-17 17:05 ` [PATCH net-next v2 1/7] qlcnic: Fix typo in logs Shahed Shaikh
2013-04-17 17:05 ` [PATCH net-next v2 2/7] qlcnic: Enable Interrupt Coalescing for 83xx adapter Shahed Shaikh
2013-04-17 17:05 ` [PATCH net-next v2 3/7] qlcnic: Enhanced channel configuration logs Shahed Shaikh
2013-04-17 17:48 ` Sergei Shtylyov [this message]
2013-04-17 17:05 ` [PATCH net-next v2 4/7] qlcnic: Stop traffic before performing loopback test Shahed Shaikh
2013-04-17 17:05 ` [PATCH net-next v2 5/7] qlcnic: fix TSO race condition Shahed Shaikh
2013-04-17 18:36 ` Eric Dumazet
2013-04-17 17:05 ` [PATCH net-next v2 6/7] qlcnic: Fix endian data type Shahed Shaikh
2013-04-17 17:05 ` [PATCH net-next v2 7/7] qlcnic: Update version to 5.2.41 Shahed Shaikh
2013-04-17 17:32 ` [PATCH net-next v2 0/7] Bug fixes and enhancements David Miller
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=516EE051.3030808@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=Dept_NX_Linux_NIC_Driver@qlogic.com \
--cc=davem@davemloft.net \
--cc=manish.chopra@qlogic.com \
--cc=netdev@vger.kernel.org \
--cc=shahed.shaikh@qlogic.com \
/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).