Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常顺宇
OpenXG-RAN
Commits
be5bbbd8
Commit
be5bbbd8
authored
Jun 08, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear rlc-am data after retransmission 5 times when doing rrcconnectionreestablishment
parent
e11cf1ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.c
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.c
+25
-0
No files found.
openair2/LAYER2/RLC/AM_v9.3.0/rlc_am_retransmit.c
View file @
be5bbbd8
...
...
@@ -806,6 +806,7 @@ mem_block_t * rlc_am_get_pdu_to_retransmit(
rlc_sn_t
sn
=
rlc_pP
->
vt_a
;
rlc_sn_t
sn_end
=
rlc_pP
->
vt_s
;
mem_block_t
*
pdu_p
=
NULL
;
mem_block_t
*
mb_p
=
NULL
;
rlc_am_tx_data_pdu_management_t
*
tx_data_pdu_management
;
//Assertion(eNB)_PRAN_DesignDocument_annex No.769
if
((
rlc_pP
->
retrans_num_pdus
<=
0
)
||
(
rlc_pP
->
vt_a
==
rlc_pP
->
vt_s
))
...
...
@@ -884,6 +885,18 @@ mem_block_t * rlc_am_get_pdu_to_retransmit(
PROTOCOL_RLC_AM_CTXT_ARGS
(
ctxt_pP
,
rlc_pP
),
tx_data_pdu_management
->
retx_count_next
,
sn
);
mb_p
=
rlc_pP
->
tx_data_pdu_buffer
[
sn
%
RLC_AM_WINDOW_SIZE
].
mem_block
;
if
(
mb_p
!=
NULL
){
free_mem_block
(
mb_p
,
__func__
);
tx_data_pdu_management
->
mem_block
=
NULL
;
tx_data_pdu_management
->
flags
.
retransmit
=
0
;
tx_data_pdu_management
->
flags
.
ack
=
1
;
tx_data_pdu_management
->
flags
.
transmitted
=
0
;
rlc_pP
->
retrans_num_bytes_to_retransmit
-=
tx_data_pdu_management
->
retx_payload_size
;
tx_data_pdu_management
->
retx_payload_size
=
0
;
tx_data_pdu_management
->
num_holes
=
0
;
rlc_pP
->
retrans_num_pdus
--
;
}
}
}
else
if
(
rlc_pP
->
nb_bytes_requested_by_mac
>=
5
)
...
...
@@ -938,6 +951,18 @@ mem_block_t * rlc_am_get_pdu_to_retransmit(
PROTOCOL_RLC_AM_CTXT_ARGS
(
ctxt_pP
,
rlc_pP
),
tx_data_pdu_management
->
retx_count_next
,
sn
);
mb_p
=
rlc_pP
->
tx_data_pdu_buffer
[
sn
%
RLC_AM_WINDOW_SIZE
].
mem_block
;
if
(
mb_p
!=
NULL
){
free_mem_block
(
mb_p
,
__func__
);
tx_data_pdu_management
->
mem_block
=
NULL
;
tx_data_pdu_management
->
flags
.
retransmit
=
0
;
tx_data_pdu_management
->
flags
.
ack
=
1
;
tx_data_pdu_management
->
flags
.
transmitted
=
0
;
rlc_pP
->
retrans_num_bytes_to_retransmit
-=
tx_data_pdu_management
->
retx_payload_size
;
tx_data_pdu_management
->
retx_payload_size
=
0
;
tx_data_pdu_management
->
num_holes
=
0
;
rlc_pP
->
retrans_num_pdus
--
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment