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 97acd8086844444d28bc170591ff7dd057e68254
parent 5b6c697420e7ca7fc43c62d5cb8d943c6b0ae975
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date:   Thu,  2 May 2019 20:00:20 -0700

SDK-178472: Now packet will be dropped without forwarding, If the selected L3...

Devices: 56980_A0
Module: L3

Symptom:
BCM_L3_DST_DISCARD flag is not setting DST_DISCARD in L3_DEFIP table

Now packet will be dropped without forwarding, If the selected L3 route
for the packet is requesting packet Discard.

Diffstat:
Msdk-6.5.16/src/bcm/esw/firebolt/l3.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sdk-6.5.16/src/bcm/esw/firebolt/l3.c b/sdk-6.5.16/src/bcm/esw/firebolt/l3.c @@ -5014,6 +5014,11 @@ _bcm_fb_lpm_prepare_defip_entry(int unit, _bcm_defip_cfg_t *lpm_cfg, lpm_cfg->defip_flex_ctr_base_id); } + /* Set destination discard flag. */ + if (lpm_cfg->defip_flags & BCM_L3_DST_DISCARD) { + soc_format_field32_set(unit, ASSOC_DATA_FULLfmt, fmte, DST_DISCARDf, 1); + } + soc_mem_field_set(unit, mem, lpm_entry, ASSOC_DATA0f, fmte); sal_memset(fmte, 0, sizeof(fmte)); soc_format_field32_set(unit, ALPM1_DATAfmt, fmte, DIRECT_ROUTEf, 1);