Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61c87a0b authored by Michael Adisumarta's avatar Michael Adisumarta Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Update MPLS DL Vlan tag array to use 16 bits



MPLS GRE supports 12 bits up to 4094 vlans. 16 bits
can support this max value while 8 bits will support
only 254 values. Without this fix, vlans 255-4094 are
not usable.

Change-Id: I582f0186b2d1042e394b75762793b6234b0f097e
Signed-off-by: default avatarMichael Adisumarta <quic_madisuma@quicinc.com>
parent 8fa497b7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
/*
 * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
 *
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#ifndef _UAPI_MSM_IPA_H_
@@ -1747,8 +1747,8 @@ struct IpaDscpVlanPcpMap_t {
	uint8_t  pad3; /* for alignment */
	uint8_t  num_mpls_val_sorted; /* num of elements in mpls_val_sorted */
	uint32_t mpls_val_sorted[IPA_EoGRE_MAX_VLAN * IPA_GRE_MAX_S_VLAN];
	uint8_t  vlan_c[IPA_EoGRE_MAX_VLAN * IPA_GRE_MAX_S_VLAN];
	uint8_t  vlan_s[IPA_EoGRE_MAX_VLAN * IPA_GRE_MAX_S_VLAN];
	uint16_t  vlan_c[IPA_EoGRE_MAX_VLAN * IPA_GRE_MAX_S_VLAN];
	uint16_t  vlan_s[IPA_EoGRE_MAX_VLAN * IPA_GRE_MAX_S_VLAN];
} __packed;

/**