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
OpenXG
OpenXG UE
Commits
9843463f
Commit
9843463f
authored
Feb 08, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Passing tx timestamp through pipeline
parent
2b150727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
executables/nr-ru.c
executables/nr-ru.c
+6
-1
No files found.
executables/nr-ru.c
View file @
9843463f
...
@@ -125,12 +125,14 @@ typedef struct processingData_L1 {
...
@@ -125,12 +125,14 @@ typedef struct processingData_L1 {
int
frame_tx
;
int
frame_tx
;
int
slot_rx
;
int
slot_rx
;
int
slot_tx
;
int
slot_tx
;
openair0_timestamp
timestamp_tx
;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_gNB
*
gNB
;
}
processingData_L1_t
;
}
processingData_L1_t
;
typedef
struct
processingData_RU
{
typedef
struct
processingData_RU
{
int
frame_tx
;
int
frame_tx
;
int
slot_tx
;
int
slot_tx
;
openair0_timestamp
timestamp_tx
;
RU_t
*
ru
;
RU_t
*
ru
;
}
processingData_RU_t
;
}
processingData_RU_t
;
...
@@ -1330,7 +1332,7 @@ void ru_tx_func(void *param) {
...
@@ -1330,7 +1332,7 @@ void ru_tx_func(void *param) {
if
(
!
emulate_rf
)
{
if
(
!
emulate_rf
)
{
// do outgoing fronthaul (south) if needed
// do outgoing fronthaul (south) if needed
if
((
ru
->
fh_north_asynch_in
==
NULL
)
&&
(
ru
->
fh_south_out
))
ru
->
fh_south_out
(
ru
,
frame_tx
,
slot_tx
,
ru
->
proc
.
timestamp_tx
);
if
((
ru
->
fh_north_asynch_in
==
NULL
)
&&
(
ru
->
fh_south_out
))
ru
->
fh_south_out
(
ru
,
frame_tx
,
slot_tx
,
info
->
timestamp_tx
);
if
(
ru
->
fh_north_out
)
ru
->
fh_north_out
(
ru
);
if
(
ru
->
fh_north_out
)
ru
->
fh_north_out
(
ru
);
}
else
{
}
else
{
...
@@ -1516,6 +1518,7 @@ void tx_func(void *param) {
...
@@ -1516,6 +1518,7 @@ void tx_func(void *param) {
notifiedFIFO_elt_t
*
res
;
notifiedFIFO_elt_t
*
res
;
syncMsg
->
frame_tx
=
frame_tx
;
syncMsg
->
frame_tx
=
frame_tx
;
syncMsg
->
slot_tx
=
slot_tx
;
syncMsg
->
slot_tx
=
slot_tx
;
syncMsg
->
timestamp_tx
=
info
->
timestamp_tx
;
syncMsg
->
ru
=
gNB
->
RU_list
[
0
];
syncMsg
->
ru
=
gNB
->
RU_list
[
0
];
res
=
tryPullTpool
(
gNB
->
resp_RU_tx
,
gNB
->
threadPool_RU_tx
);
res
=
tryPullTpool
(
gNB
->
resp_RU_tx
,
gNB
->
threadPool_RU_tx
);
...
@@ -1639,6 +1642,7 @@ void rx_func(void *param) {
...
@@ -1639,6 +1642,7 @@ void rx_func(void *param) {
syncMsg
->
slot_rx
=
slot_rx
;
syncMsg
->
slot_rx
=
slot_rx
;
syncMsg
->
frame_tx
=
frame_tx
;
syncMsg
->
frame_tx
=
frame_tx
;
syncMsg
->
slot_tx
=
slot_tx
;
syncMsg
->
slot_tx
=
slot_tx
;
syncMsg
->
timestamp_tx
=
info
->
timestamp_tx
;
if
(
tx_slot_type
==
NR_DOWNLINK_SLOT
||
tx_slot_type
==
NR_MIXED_SLOT
)
{
if
(
tx_slot_type
==
NR_DOWNLINK_SLOT
||
tx_slot_type
==
NR_MIXED_SLOT
)
{
res
=
tryPullTpool
(
gNB
->
resp_L1_tx
,
gNB
->
threadPool_L1_tx
);
res
=
tryPullTpool
(
gNB
->
resp_L1_tx
,
gNB
->
threadPool_L1_tx
);
...
@@ -1903,6 +1907,7 @@ void *ru_thread( void *param ) {
...
@@ -1903,6 +1907,7 @@ void *ru_thread( void *param ) {
syncMsg
->
slot_rx
=
proc
->
tti_rx
;
syncMsg
->
slot_rx
=
proc
->
tti_rx
;
syncMsg
->
frame_tx
=
proc
->
frame_tx
;
syncMsg
->
frame_tx
=
proc
->
frame_tx
;
syncMsg
->
slot_tx
=
proc
->
tti_tx
;
syncMsg
->
slot_tx
=
proc
->
tti_tx
;
syncMsg
->
timestamp_tx
=
proc
->
timestamp_tx
;
// check if previous L1 slot processing is finished
// check if previous L1 slot processing is finished
res
=
pullTpool
(
gNB
->
resp_L1
,
gNB
->
threadPool_L1
);
res
=
pullTpool
(
gNB
->
resp_L1
,
gNB
->
threadPool_L1
);
...
...
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