[SMF,MME] Gn: Set Maximum SDU Size QoS field to 1500

Before this patch, it was set as 0, which is Reserved in Network to MS
direction.

(cherry picked from commit 88a77f7bc5)
This commit is contained in:
Pau Espin 2024-01-26 19:06:34 +01:00 committed by Oliver Smith
parent e2b747546b
commit e45eca76b6
2 changed files with 11 additions and 0 deletions

View File

@ -78,6 +78,9 @@ static void build_qos_profile_from_session(ogs_gtp1_qos_profile_decoded_t *qos_p
qos_pdec->qos_profile.data.delivery_erroneous_sdu = OGS_GTP1_DELIVERY_ERR_SDU_NO;
/* Maximum SDU Size: Encode it as 1500, the maximum for IP 3GPP TS 23.107 Table 4, Note 4) */
qos_pdec->qos_profile.data.max_sdu_size = 0x96;
/* 3GPP TS 23.401 Annex E table Table E.3 */
/* Also take into account table 7 in 3GPP TS 23.107 9.1.2.2 */
switch (session->qos.index) { /* QCI */

View File

@ -41,6 +41,14 @@ static void build_qos_profile_from_session(ogs_gtp1_qos_profile_decoded_t *qos_p
qos_pdec->qos_profile.data.delivery_erroneous_sdu = OGS_GTP1_DELIVERY_ERR_SDU_NO;
/* Maximum SDU Size: If value is set to a valid value, reuse it: */
if (sess->gtp.v1.qos_pdec.qos_profile.data.max_sdu_size >= 0x01 &&
sess->gtp.v1.qos_pdec.qos_profile.data.max_sdu_size <= 0x99) {
qos_pdec->qos_profile.data.max_sdu_size = sess->gtp.v1.qos_pdec.qos_profile.data.max_sdu_size;
} else { /* Encode it as 1500, the maximum for IP 3GPP TS 23.107 Table 4, Note 4) */
qos_pdec->qos_profile.data.max_sdu_size = 0x96;
}
/* 3GPP TS 23.401 Annex E table Table E.3 */
/* Also take into account table 7 in 3GPP TS 23.107 9.1.2.2 */
switch (sess->session.qos.index) { /* QCI */