lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 18 Jul 2013 00:45:07 +0300 From: "Dmitry Kravkov" <dmitry@...adcom.com> To: davem@...emloft.net, netdev@...r.kernel.org Subject: [PATCH net v2 1/6] bnx2x: properly initialize statistic counters This prevent second statistics query be sent before first one is complete. This is required since two outstanding queries may cause FW assert. Signed-off-by: Dmitry Kravkov <dmitry@...adcom.com> Signed-off-by: Ariel Elior <ariele@...adcom.com> Signed-off-by: Eilon Greenstein <eilong@...adcom.com> --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c index 98366ab..7b39424 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c @@ -1591,10 +1591,15 @@ void bnx2x_stats_init(struct bnx2x *bp) { int /*abs*/port = BP_PORT(bp); int mb_idx = BP_FW_MB_IDX(bp); + struct stats_counter *counters = &bp->fw_stats_data->storm_counters; bp->stats_pending = 0; bp->executer_idx = 0; bp->stats_counter = 0; + counters->xstats_counter = cpu_to_le16(0xFFFF); + counters->tstats_counter = cpu_to_le16(0xFFFF); + counters->ustats_counter = cpu_to_le16(0xFFFF); + counters->cstats_counter = cpu_to_le16(0xFFFF); /* port and func stats for management */ if (!BP_NOMCP(bp)) { -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists