commit 3b01cda0eee41376d781912607166905e8f5d5c3
parent 4eafd715820438ebc8b48ddd6a7a721306f445ce
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date: Mon, 1 Apr 2019 09:59:51 -0700
SDK-175386: Users will not be allowed to add VLAN ingress only port membershi...
Devices: AllChips
Module: vlan
Symptom:
Observing a "vlan add" command with operation failed. This issue is
observed in a scaled scenario such that all the PORT_BITMAP_PROFILE
table is full.
Users will not be allowed to add VLAN ingress only port membership if
the EGR VLAN port membership add fails. The API would either fail
completely or pass completely. However, since the API failed, it
will now not show these ports as a part of the VLAN.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sdk-6.5.16/src/bcm/esw/tomahawk3/vlan.c b/sdk-6.5.16/src/bcm/esw/tomahawk3/vlan.c
@@ -224,7 +224,8 @@ _bcm_th3_vlan_pbmp_profile_entry_add(
/* Convert the SOC return value to BCM return code */
if (SOC_FAILURE(rv)) {
- return ((SOC_E_FULL != rv) ? BCM_E_FAIL : BCM_E_FULL);
+ return (((SOC_E_FULL == rv) || (SOC_E_RESOURCE == rv)) ?
+ BCM_E_FULL : BCM_E_FAIL);
} else {
/* Populate the given index buffer if the entry add succeeded */
*index = profile_idx;