openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

commit 820187ce35586936a552a60a368b4e1effe71855
parent 35269c0750156195c667e3bb2e16a2cf09d3b27a
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Wed,  8 Jan 2020 17:09:01 -0800

SDK-175538: Corrected DMA buffer location for CDMIB counter collection in syn...

Devices: 56980_A0
Module: SOC

Symptom:
Cached counter values returned are large/invalid

Corrected DMA buffer location for CDMIB counter collection in sync mode.

Diffstat:
Msdk-6.5.16/src/soc/common/counter.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sdk-6.5.16/src/soc/common/counter.c b/sdk-6.5.16/src/soc/common/counter.c @@ -15213,10 +15213,12 @@ soc_counter_collect_th_non_dma_entries(int unit, } } else #endif - if (non_dma->flags & _SOC_COUNTER_NON_DMA_DO_DMA) { - COUNTER_UNLOCK(unit); - sal_thread_yield(); - COUNTER_LOCK(unit); + { + if (non_dma->flags & _SOC_COUNTER_NON_DMA_DO_DMA) { + COUNTER_UNLOCK(unit); + sal_thread_yield(); + COUNTER_LOCK(unit); + } } LOG_VERBOSE(BSL_LS_SOC_COUNTER, (BSL_META_U(unit,