commit 98602ed98b83ed240c5912b40c5b885e43836d51
parent 7731c69df2a9be0a293831182781822f2d0c5f65
Author: Broadcom SDK Release <sdk.releases@broadcom.com>
Date: Sat, 2 Feb 2019 17:18:33 -0800
SDK-170053: Fixed incorrect mask applied to tunnel IP addr.
Devices: 56980_B0
Module: Tunnel
Symptom:
TH3 - v6 Tunnel Termination not working due to incorrect mask being
applied to tunnel IP address
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk-6.5.16/src/bcm/esw/tomahawk3/tunnel.c b/sdk-6.5.16/src/bcm/esw/tomahawk3/tunnel.c
@@ -230,7 +230,7 @@ _bcm_th3_l3_tnl_term_entry_init(int unit, bcm_tunnel_terminator_t *tnl_info,
/* DIP [90-127] */
ip6_field[1] = (ip6[0] >> 2);
ip6_field[0] = ((ip6[1] << 24)| (ip6[2] << 16) |
- (ip6[3] << 8) | (ip6[4] && 0xfc));
+ (ip6[3] << 8) | (ip6[4] & 0xfc));
ip6_field[0] = ((ip6[0] & 3) << 30) | (ip6_field[0] >> 2);
soc_mem_field_set(unit, mem, (uint32 *)&entry->entry_arr[0], IPV6__DIP_UPR_38f, ip6_field);