From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Yuval Mintz <yuvalmin@broadcom.com>,
davem@davemloft.net, netdev@vger.kernel.org,
Dmitry Kravkov <dmitry@broadcom.com>
Cc: ariele@broadcom.com
Subject: Re: [PATCH net 1/5] bnx2x: limit number of interrupt vectors for 57711
Date: Mon, 06 Jan 2014 17:47:34 +0400 [thread overview]
Message-ID: <52CAB3F6.2060901@cogentembedded.com> (raw)
In-Reply-To: <1388939634-19948-2-git-send-email-yuvalmin@broadcom.com>
Hello.
On 05-01-2014 20:33, Yuval Mintz wrote:
> From: Dmitry Kravkov <dmitry@broadcom.com>
> Original straightforward division may lead to zeroing number of SB and
> null-pointer dereference when device is short of MSIX vectors or lacks
> MSIX capabilities.
> Reported-by: Vladislav Zolotarov <vladz@cloudius-systems.com>
> Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
> Signed-off-by: Ariel Elior <ariele@broadcom.com>
> ---
> drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 2 ++
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 6 +++---
> 2 files changed, 5 insertions(+), 3 deletions(-)
> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
> index a1f66e2..cb30d1a 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
> @@ -2499,4 +2499,6 @@ void bnx2x_set_local_cmng(struct bnx2x *bp);
> #define MCPR_SCRATCH_BASE(bp) \
> (CHIP_IS_E1x(bp) ? MCP_REG_MCPR_SCRATCH : MCP_A_REG_MCPR_SCRATCH)
>
> +#define E1H_MAX_MF_SB_COUNT (HC_SB_MAX_SB_E1X/(E1HVN_MAX * PORT_MAX))
Be consistent and put spaces around / too, please.
WBR, Sergei
next prev parent reply other threads:[~2014-01-06 13:47 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-05 16:33 [PATCH net 0/5] bnx2x: Bug fixes patch series Yuval Mintz
2014-01-05 16:33 ` [PATCH net 1/5] bnx2x: limit number of interrupt vectors for 57711 Yuval Mintz
2014-01-06 13:47 ` Sergei Shtylyov [this message]
2014-01-05 16:33 ` [PATCH net 2/5] bnx2x: Correct number of MSI-X vectors for VFs Yuval Mintz
2014-01-06 16:28 ` [BUG] bnx2x : lockdep assertion Eric Dumazet
2014-01-06 16:35 ` Ariel Elior
2014-01-06 16:49 ` Eric Dumazet
2014-01-05 16:33 ` [PATCH net 3/5] bnx2x: Clean before update RSS arrives Yuval Mintz
2014-01-05 16:33 ` [PATCH net 4/5] bnx2x: fix AFEX memory overflow Yuval Mintz
2014-01-05 16:33 ` [PATCH net 5/5] bnx2x: fix VLAN configuration for VFs Yuval Mintz
2014-01-05 19:19 ` Or Gerlitz
2014-01-05 19:24 ` Yuval Mintz
2014-01-06 1:23 ` [PATCH net 0/5] bnx2x: Bug fixes patch series 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=52CAB3F6.2060901@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=ariele@broadcom.com \
--cc=davem@davemloft.net \
--cc=dmitry@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=yuvalmin@broadcom.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.