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
wangjie
OpenXG-RAN
Commits
f112de54
Commit
f112de54
authored
Aug 28, 2019
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix -O3 issue; add FS6_REMOTE_IP to set distant CU or DU
parent
f1b677f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-1
executables/main-fs6.c
executables/main-fs6.c
+14
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
f112de54
...
...
@@ -184,7 +184,7 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath -Wl,${CMAKE_CU
# set a flag for changes in the source code
# these changes are related to hardcoded path to include .h files
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS
}
-g3 -DMALLOC_CHECK_=3"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g3 -DMALLOC_CHECK_=3 -O
0
"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g3 -DMALLOC_CHECK_=3 -O
3
"
)
set
(
GIT_BRANCH
"UNKNOWN"
)
...
...
executables/main-fs6.c
View file @
f112de54
...
...
@@ -1280,7 +1280,8 @@ void UL_cu_fs6(RU_t *ru, uint64_t *TS) {
setAllfromTS
(
hUDP
(
bufferZone
)
->
timestamp
);
PHY_VARS_eNB
*
eNB
=
RC
.
eNB
[
0
][
0
];
prach_eNB_fromsplit
(
bufferZone
,
sizeof
(
bufferZone
),
eNB
);
if
(
is_prach_subframe
(
&
eNB
->
frame_parms
,
eNB
->
proc
.
frame_prach
,
eNB
->
proc
.
subframe_prach
)
>
0
)
prach_eNB_fromsplit
(
bufferZone
,
sizeof
(
bufferZone
),
eNB
);
release_UE_in_freeList
(
eNB
->
Mod_id
);
if
(
NFAPI_MODE
==
NFAPI_MONOLITHIC
||
NFAPI_MODE
==
NFAPI_MODE_PNF
)
{
...
...
@@ -1295,7 +1296,12 @@ void *cu_fs6(void *arg) {
init_frame_parms
(
&
ru
->
frame_parms
,
1
);
phy_init_RU
(
ru
);
wait_sync
(
"ru_thread"
);
AssertFatal
(
createUDPsock
(
NULL
,
CU_PORT
,
CU_IP
,
DU_PORT
,
&
sockFS6
),
""
);
char
*
remoteIP
;
if
(
getenv
(
"FS6_REMOTE_IP"
)
)
remoteIP
=
getenv
(
"FS6_REMOTE_IP"
);
else
remoteIP
=
DU_IP
;
AssertFatal
(
createUDPsock
(
NULL
,
CU_PORT
,
remoteIP
,
DU_PORT
,
&
sockFS6
),
""
);
uint64_t
timeStamp
=
0
;
while
(
1
)
{
...
...
@@ -1315,7 +1321,12 @@ void *du_fs6(void *arg) {
phy_init_RU
(
ru
);
openair0_device_load
(
&
ru
->
rfdevice
,
&
ru
->
openair0_cfg
);
wait_sync
(
"ru_thread"
);
AssertFatal
(
createUDPsock
(
NULL
,
DU_PORT
,
DU_IP
,
CU_PORT
,
&
sockFS6
),
""
);
char
*
remoteIP
;
if
(
getenv
(
"FS6_REMOTE_IP"
)
)
remoteIP
=
getenv
(
"FS6_REMOTE_IP"
);
else
remoteIP
=
CU_IP
;
AssertFatal
(
createUDPsock
(
NULL
,
DU_PORT
,
remoteIP
,
CU_PORT
,
&
sockFS6
),
""
);
if
(
ru
->
start_rf
)
{
if
(
ru
->
start_rf
(
ru
)
!=
0
)
...
...
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