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 42d27846d0f706effeec4ce6221c168da31ed2b7
parent 540234b363142d88e0e3d83eff4ab92ce6c21a9d
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Thu,  4 Apr 2019 13:55:59 -0700

SDK-175780: Fixed cpu queue calculation for egr_pool case

Devices: 56980_A0,56980_B0
Module: MMU

Symptom:
_bcm_th3_cosq_index_resolve() does not compute CPU queues correctly

Diffstat:
Msdk-6.5.16/src/bcm/tomahawk3/cosq.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk-6.5.16/src/bcm/tomahawk3/cosq.c b/sdk-6.5.16/src/bcm/tomahawk3/cosq.c @@ -3346,7 +3346,7 @@ _bcm_th3_cosq_index_resolve(int unit, bcm_port_t port, bcm_cos_queue_t cosq, if (startq >= numq) { return BCM_E_PARAM; } - resolved_index = uc_base + startq; + resolved_index = (IS_CPU_PORT(unit, resolved_port) ? mc_base : uc_base) + startq; mem = MMU_THDO_Q_TO_QGRP_MAPD0m; } SOC_IF_ERROR_RETURN(soc_mem_read(unit, mem, MEM_BLOCK_ALL, resolved_index,