Skip to content

Commit

Permalink
[SMF,MME] Gn: Set Maximum SDU Size QoS field to 1500
Browse files Browse the repository at this point in the history
Before this patch, it was set as 0, which is Reserved in Network to MS
direction.
  • Loading branch information
pespin committed Jan 26, 2024
1 parent ce184d9 commit a2c2869
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mme/mme-gn-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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 */
Expand Down
8 changes: 8 additions & 0 deletions src/smf/gn-build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a2c2869

Please sign in to comment.