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 b31b027d0face1b135d439f4effb1908f60e1dc6
parent 3ab2992b3bd305abefb2fdbebb50cb186b49f7b6
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Thu,  6 Aug 2020 12:24:18 -0700

SDK-206887: SDK-206887: bcm_udf_pkt_format_add clears ENABLE_UDF_CONDITIONAL_CHECK

Devices: 56970_A0,56970_B0
Module: udf

Symptom:
API bcm_udf_pkt_format_add() resets the field
ENABLE_UDF_CONDITIONAL_CHECK when called for subsequent UDFs belonging
to the same UDF packet format entry.



Diffstat:
Msdk-6.5.16/src/bcm/esw/xgs4/udf.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sdk-6.5.16/src/bcm/esw/xgs4/udf.c b/sdk-6.5.16/src/bcm/esw/xgs4/udf.c @@ -3261,9 +3261,10 @@ bcmi_xgs4_udf_offset_install(int unit, int e, uint32 hw_bmap, soc_mem_field32_set(unit, mem, &offset_buf, UDF_CLASS_IDf, class_id); } if (UDF_CTRL(unit)->flags & BCMI_XGS4_UDF_CONDITIONAL_CHECK) { - soc_mem_field32_set(unit, mem, &offset_buf, - ENABLE_UDF_CONDITIONAL_CHECKf, - ((flags & BCMI_XGS4_UDF_OFFSET_FLEXHASH) ? 1 : 0)); + if (flags & BCMI_XGS4_UDF_OFFSET_FLEXHASH) { + soc_mem_field32_set(unit, mem, &offset_buf, + ENABLE_UDF_CONDITIONAL_CHECKf, 1); + } } #endif