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
zzha zzha
OpenXG-RAN
Commits
e1580cce
Commit
e1580cce
authored
Apr 17, 2015
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msc
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7195
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
6c434118
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
1 deletion
+65
-1
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
+65
-1
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp_fifo.c
View file @
e1580cce
...
...
@@ -67,6 +67,7 @@ extern int otg_enabled;
#include "UTIL/OTG/otg_tx.h"
#include "UTIL/FIFO/pad_list.h"
#include "platform_constants.h"
#include "msc.h"
#include "assertions.h"
...
...
@@ -193,8 +194,27 @@ int pdcp_fifo_flush_sdus(const protocol_ctxt_t* const ctxt_pP)
if
(
ret
<
0
)
{
LOG_D
(
PDCP
,
"[PDCP_FIFOS] sendmsg returns %d (errno: %d)
\n
"
,
ret
,
errno
);
MSC_LOG_TX_MESSAGE_FAILED
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND RNTI %"
PRIx16
" rb %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
rb_id
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
data_size
);
mac_xface
->
macphy_exit
(
"sendmsg failed for nas_sock_fd
\n
"
);
break
;
}
else
{
MSC_LOG_TX_MESSAGE
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND RNTI %"
PRIx16
" rb %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
rb_id
,
((
pdcp_data_ind_header_t
*
)(
sdu_p
->
data
))
->
data_size
);
}
#endif // LINUX
...
...
@@ -504,6 +524,17 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
pdcp_read_header_g
.
rb_id
);
#endif
MSC_LOG_RX_MESSAGE
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND inst %u rb %u rab %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
pdcp_read_header_g
.
inst
,
pdcp_read_header_g
.
rb_id
,
rab_id
,
pdcp_read_header_g
.
data_size
);
LOG_D
(
PDCP
,
"[FRAME %5u][eNB][IP][INSTANCE %u][RB %u][--- PDCP_DATA_REQ / %d Bytes --->][PDCP][MOD %u]UE %u][RB %u]
\n
"
,
ctxt_cpy
.
frame
,
pdcp_read_header_g
.
inst
,
...
...
@@ -581,6 +612,17 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
ctxt
.
rnti
,
rab_id
);
#endif
MSC_LOG_RX_MESSAGE
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND inst %u rb %u rab %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
pdcp_read_header_g
.
inst
,
pdcp_read_header_g
.
rb_id
,
rab_id
,
pdcp_read_header_g
.
data_size
);
pdcp_data_req
(
&
ctxt
,
...
...
@@ -592,6 +634,17 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
(
unsigned
char
*
)
NLMSG_DATA
(
nas_nlh_rx
),
PDCP_TRANSMISSION_MODE_DATA
);
}
else
{
MSC_LOG_RX_DISCARDED_MESSAGE
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND inst %u rb %u rab %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
pdcp_read_header_g
.
inst
,
pdcp_read_header_g
.
rb_id
,
rab_id
,
pdcp_read_header_g
.
data_size
);
LOG_D
(
PDCP
,
"[FRAME %5u][UE][IP][INSTANCE %u][RB %u][--- PDCP_DATA_REQ / %d Bytes ---X][PDCP][MOD %u][UE %u][RB %u] NON INSTANCIATED INSTANCE key 0x%"
PRIx64
", DROPPED
\n
"
,
ctxt
.
frame
,
...
...
@@ -613,6 +666,17 @@ int pdcp_fifo_read_input_sdus (const protocol_ctxt_t* const ctxt_pP)
ctxt
.
module_id
,
ctxt
.
rnti
,
DEFAULT_RAB_ID
);
MSC_LOG_RX_MESSAGE
(
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_PDCP_ENB
:
MSC_PDCP_UE
,
(
ctxt_pP
->
enb_flag
==
ENB_FLAG_YES
)
?
MSC_IP_ENB
:
MSC_IP_UE
,
NULL
,
0
,
MSC_AS_TIME_FMT
" DATA-IND inst %u rb %u default rab %u size %u"
,
MSC_AS_TIME_ARGS
(
ctxt_pP
),
pdcp_read_header_g
.
inst
,
pdcp_read_header_g
.
rb_id
,
DEFAULT_RAB_ID
,
pdcp_read_header_g
.
data_size
);
pdcp_data_req
(
&
ctxt
,
SRB_FLAG_NO
,
...
...
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