Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
a3707f34
Commit
a3707f34
authored
Nov 26, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6110
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
c99fc8eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
openair2/LAYER2/RLC/rlc.c
openair2/LAYER2/RLC/rlc.c
+8
-4
openair2/LAYER2/RLC/rlc_mac.c
openair2/LAYER2/RLC/rlc_mac.c
+4
-0
No files found.
openair2/LAYER2/RLC/rlc.c
View file @
a3707f34
...
...
@@ -54,10 +54,11 @@ extern boolean_t pdcp_data_ind(
const
sdu_size_t
sdu_buffer_sizeP
,
mem_block_t
*
const
sdu_buffer_pP
);
#define DEBUG_RLC_PDCP_INTERFACE
#define DEBUG_RLC_PDCP_INTERFACE
1
//#define DEBUG_RLC_PAYLOAD 1
#define DEBUG_RLC_DATA_REQ 1
#if defined(DEBUG_RLC_PAYLOAD)
//-----------------------------------------------------------------------------
void
rlc_util_print_hex_octets
(
comp_name_t
componentP
,
unsigned
char
*
dataP
,
const
signed
long
sizeP
)
//-----------------------------------------------------------------------------
...
...
@@ -98,7 +99,7 @@ void rlc_util_print_hex_octets(comp_name_t componentP, unsigned char* dataP, con
LOG_T
(
componentP
,
" "
);
LOG_T
(
componentP
,
" |
\n
"
);
}
#endif
//-----------------------------------------------------------------------------
rlc_op_status_t
rlc_stat_req
(
const
module_id_t
enb_module_idP
,
...
...
@@ -441,7 +442,9 @@ rlc_op_status_t rlc_data_req (const module_id_t enb_module_idP,
enb_module_idP
,
ue_module_idP
,
rb_idP
);
#if defined(DEBUG_RLC_PAYLOAD)
rlc_util_print_hex_octets
(
RLC
,
(
unsigned
char
*
)
sdu_pP
->
data
,
sdu_sizeP
);
#endif
#ifdef DEBUG_RLC_DATA_REQ
LOG_D
(
RLC
,
"RLC_TYPE : %d "
,
rlc_mode
);
...
...
@@ -649,6 +652,7 @@ void rlc_data_ind (
//-----------------------------------------------------------------------------
#if defined(DEBUG_RLC_PAYLOAD)
LOG_D
(
RLC
,
"[FRAME %5u][%s][RLC][INST %u/%u][%s %u] Display of rlc_data_ind: size %u
\n
"
,
frameP
,
(
enb_flagP
)
?
"eNB"
:
"UE"
,
...
...
@@ -659,7 +663,7 @@ void rlc_data_ind (
sdu_sizeP
);
rlc_util_print_hex_octets
(
RLC
,
(
unsigned
char
*
)
sdu_pP
->
data
,
sdu_sizeP
);
#endif
LOG_D
(
RLC
,
"[FRAME %5u][%s][RLC][INST %u/%u][%s %u][--- RLC_DATA_IND/%d Bytes --->][PDCP][INST %u/%u][%s %u]
\n
"
,
frameP
,
(
enb_flagP
)
?
"eNB"
:
"UE"
,
...
...
openair2/LAYER2/RLC/rlc_mac.c
View file @
a3707f34
...
...
@@ -76,8 +76,10 @@ struct mac_data_ind mac_rlc_deserialize_tb (
memcpy
(((
struct
mac_tb_ind
*
)
(
tb_p
->
data
))
->
data_ptr
,
&
buffer_pP
[
tbs_size
],
tb_sizeP
);
#ifdef DEBUG_MAC_INTERFACE
#if defined(DEBUG_RLC_PAYLOAD)
LOG_T
(
RLC
,
"[MAC-RLC] DUMP RX PDU(%d bytes):
\n
"
,
tb_sizeP
);
rlc_util_print_hex_octets
(
RLC
,
((
struct
mac_tb_ind
*
)
(
tb_p
->
data
))
->
data_ptr
,
tb_sizeP
);
#endif
#endif
nb_tb_read
=
nb_tb_read
+
1
;
tbs_size
=
tbs_size
+
tb_sizeP
;
...
...
@@ -103,8 +105,10 @@ tbs_size_t mac_rlc_serialize_tb (char* buffer_pP, list_t transport_blocksP) {
if
(
tb_p
!=
NULL
)
{
tb_size
=
((
struct
mac_tb_req
*
)
(
tb_p
->
data
))
->
tb_size
;
#ifdef DEBUG_MAC_INTERFACE
#if defined(DEBUG_RLC_PAYLOAD)
LOG_T
(
RLC
,
"[MAC-RLC] DUMP TX PDU(%d bytes):
\n
"
,
tb_size
);
rlc_util_print_hex_octets
(
RLC
,
((
struct
mac_tb_req
*
)
(
tb_p
->
data
))
->
data_ptr
,
tb_size
);
#endif
#endif
memcpy
(
&
buffer_pP
[
tbs_size
],
&
((
struct
mac_tb_req
*
)
(
tb_p
->
data
))
->
data_ptr
[
0
],
tb_size
);
tbs_size
=
tbs_size
+
tb_size
;
...
...
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