Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shweta Shrivastava
openairinterface5G
Commits
3c7c61a4
Commit
3c7c61a4
authored
8 years ago
by
Bilel
Browse files
Options
Downloads
Patches
Plain Diff
RLC AM fix specific reassembly issue
parent
1213521c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
+33
-4
33 additions, 4 deletions
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
openair2/UTIL/LISTS/list2.c
+2
-0
2 additions, 0 deletions
openair2/UTIL/LISTS/list2.c
with
35 additions
and
4 deletions
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_rx_list.c
+
33
−
4
View file @
3c7c61a4
...
...
@@ -796,6 +796,9 @@ rlc_am_rx_list_check_duplicate_insert_pdu(
rlc_am_rx_pdu_status_t
pdu_status
=
RLC_AM_DATA_PDU_STATUS_OK
;
// it is assumed this pdu is in rx window
/* Init Reassembly status */
((
rlc_am_rx_pdu_management_t
*
)(
tb_pP
->
data
))
->
segment_reassembled
=
RLC_AM_RX_PDU_SEGMENT_REASSEMBLE_NO
;
if
(
cursor_p
==
NULL
)
{
LOG_D
(
RLC
,
PROTOCOL_RLC_AM_CTXT_FMT
"[INSERT PDU] LINE %d RX PDU SN %04d (only inserted)
\n
"
,
PROTOCOL_RLC_AM_CTXT_ARGS
(
ctxt_pP
,
rlc_pP
),
...
...
@@ -806,9 +809,6 @@ rlc_am_rx_list_check_duplicate_insert_pdu(
}
/* Init Reassembly status */
((
rlc_am_rx_pdu_management_t
*
)(
tb_pP
->
data
))
->
segment_reassembled
=
RLC_AM_RX_PDU_SEGMENT_REASSEMBLE_NO
;
if
(
pdu_rx_info_p
->
rf
==
0
)
{
// Case normal PDU received
pdu_status
=
rlc_am_rx_list_handle_pdu
(
ctxt_pP
,
rlc_pP
,
tb_pP
);
}
...
...
@@ -1396,6 +1396,7 @@ rlc_am_rx_mark_all_segments_received(
}
}
//-----------------------------------------------------------------------------
//#define RLC_AM_DEBUG_REASSEMBLY
void
rlc_am_rx_list_reassemble_rlc_sdus
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
...
...
@@ -1413,6 +1414,9 @@ rlc_am_rx_list_reassemble_rlc_sdus(
rlc_am_rx_pdu_management_t
*
rlc_am_rx_pdu_management_p
=
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
));
pdu_info_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_p
->
data
))
->
pdu_info
;
#ifdef RLC_AM_DEBUG_REASSEMBLY
rlc_usn_t
sn_reass_start
=
pdu_info_p
->
sn
;
#endif
/* Specific process for the first SN if all PDU segments had been reassembled but not freed */
if
((
rlc_am_rx_pdu_management_p
->
all_segments_received
>
0
)
&&
(
pdu_info_p
->
rf
!=
0
))
{
...
...
@@ -1445,6 +1449,10 @@ rlc_am_rx_list_reassemble_rlc_sdus(
cursor_p
=
list2_get_head
(
&
rlc_pP
->
receiver_buffer
);
if
(
cursor_p
==
NULL
)
{
#ifdef RLC_AM_DEBUG_REASSEMBLY
LOG_D
(
RLC
,
"RLC AM REASSEMBLY from sn=%d to ALL, vrR=%d vrMS=%d
\n
"
,
sn_reass_start
,
rlc_pP
->
vr_r
,
rlc_pP
->
vr_ms
);
#endif
return
;
}
...
...
@@ -1458,6 +1466,10 @@ rlc_am_rx_list_reassemble_rlc_sdus(
cursor_p
=
cursor_p
->
next
;
if
(
cursor_p
==
NULL
)
{
#ifdef RLC_AM_DEBUG_REASSEMBLY
LOG_D
(
RLC
,
"RLC AM REASSEMBLY from sn=%d to ALL, Last is Segment, vrR=%d vrMS=%d
\n
"
,
sn_reass_start
,
rlc_pP
->
vr_r
,
rlc_pP
->
vr_ms
);
#endif
return
;
}
...
...
@@ -1482,12 +1494,29 @@ rlc_am_rx_list_reassemble_rlc_sdus(
PROTOCOL_RLC_AM_CTXT_ARGS
(
ctxt_pP
,
rlc_pP
));
}
#endif
#ifdef RLC_AM_DEBUG_REASSEMBLY
LOG_D
(
RLC
,
"RLC AM REASSEMBLY from sn=%d to ALL, vrR=%d vrMS=%d
\n
"
,
sn_reass_start
,
rlc_pP
->
vr_r
,
rlc_pP
->
vr_ms
);
#endif
return
;
}
}
while
(((
rlc_am_rx_pdu_management_p
->
pdu_info
.
sn
==
((
rlc_am_rx_old_pdu_management
->
pdu_info
.
sn
+
1
)
&
RLC_AM_SN_MASK
)
)
&&
(
rlc_am_rx_old_pdu_management
->
all_segments_received
>
0
))
}
while
(((
RLC_AM_DIFF_SN
(
rlc_am_rx_pdu_management_p
->
pdu_info
.
sn
,
rlc_am_rx_old_pdu_management
->
pdu_info
.
sn
)
<
2
)
&&
(
rlc_am_rx_old_pdu_management
->
all_segments_received
>
0
))
||
((
rlc_am_rx_pdu_management_p
->
pdu_info
.
sn
==
rlc_am_rx_old_pdu_management
->
pdu_info
.
sn
)
&&
(
rlc_am_rx_pdu_management_p
->
segment_reassembled
!=
RLC_AM_RX_PDU_SEGMENT_REASSEMBLE_NO
)));
#ifdef RLC_AM_DEBUG_REASSEMBLY
mem_block_t
*
cursor_head_p
=
list2_get_head
(
&
rlc_pP
->
receiver_buffer
);
if
(
cursor_head_p
==
NULL
)
{
return
;
}
rlc_am_pdu_info_t
*
pdu_info_head_p
=
&
((
rlc_am_rx_pdu_management_t
*
)(
cursor_head_p
->
data
))
->
pdu_info
;
LOG_D
(
RLC
,
"RLC AM REASSEMBLY from sn=%d to sn=%d, next_sn=%d head sn=%d vrR=%d vrMS=%d
\n
"
,
sn_reass_start
,
rlc_am_rx_old_pdu_management
->
pdu_info
.
sn
,
rlc_am_rx_pdu_management_p
->
pdu_info
.
sn
,
pdu_info_head_p
->
sn
,
rlc_pP
->
vr_r
,
rlc_pP
->
vr_ms
);
#endif
}
//-----------------------------------------------------------------------------
mem_block_t
*
...
...
This diff is collapsed.
Click to expand it.
openair2/UTIL/LISTS/list2.c
+
2
−
0
View file @
3c7c61a4
...
...
@@ -233,6 +233,8 @@ list2_add_head (mem_block_t * elementP, list2_t * listP)
// almost one element
if
(
head
==
NULL
)
{
elementP
->
previous
=
NULL
;
elementP
->
next
=
NULL
;
listP
->
head
=
elementP
;
listP
->
tail
=
elementP
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment