Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
eb92fa91
Commit
eb92fa91
authored
Jan 17, 2019
by
Panos Matzakos
Browse files
Fixed eNB threading issues creating problems for nfapi emulator.
parent
d62f8f93
Changes
5
Hide whitespace changes
Inline
Side-by-side
nfapi/open-nFAPI/pnf/src/pnf.c
View file @
eb92fa91
...
...
@@ -1260,7 +1260,7 @@ int pnf_connect(pnf_t* pnf)
address
=
inet_ntoa
(
addr
->
sin_addr
);
}
NFAPI_TRACE
(
NFAPI_TRACE_NOTE
,
"Host address info %d Family:%s Address:%s
\n
"
,
i
++
,
family
,
address
);
//
NFAPI_TRACE(NFAPI_TRACE_NOTE, "Host address info %d Family:%s Address:%s\n", i++, family, address);
if
(
pnf
->
sctp
)
{
...
...
nfapi/open-nFAPI/pnf/src/pnf_p7.c
View file @
eb92fa91
...
...
@@ -379,7 +379,7 @@ static uint32_t get_sf_time(uint32_t now_hr, uint32_t sf_start_hr)
{
if
(
now_hr
<
sf_start_hr
)
{
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"now is earlier than start of subframe now_hr:%u sf_start_hr:%u
\n
"
,
now_hr
,
sf_start_hr
);
//
NFAPI_TRACE(NFAPI_TRACE_INFO, "now is earlier than start of subframe now_hr:%u sf_start_hr:%u\n", now_hr, sf_start_hr);
return
0
;
}
else
...
...
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
eb92fa91
...
...
@@ -1203,12 +1203,12 @@ void vnf_handle_ul_node_sync(void *pRecvMsg, int recvMsgLen, vnf_p7_t* vnf_p7)
if
(
phy
->
in_sync
==
0
)
{
NFAPI_TRACE
(
NFAPI_TRACE_NOTE
,
"***** Adjusting VNF phy_id:%d SFN/SF (%s) from %d to %d (%d) mode:%s zeroCount:%u sync:%s
\n
"
,
/*
NFAPI_TRACE(NFAPI_TRACE_NOTE, "***** Adjusting VNF phy_id:%d SFN/SF (%s) from %d to %d (%d) mode:%s zeroCount:%u sync:%s\n",
ind.header.phy_id, (phy->in_sync ? "via sfn" : "now"),
NFAPI_SFNSF2DEC(curr_sfn_sf), NFAPI_SFNSF2DEC(new_sfn_sf), phy->adjustment,
phy->filtered_adjust ? "FILTERED" : "ABSOLUTE",
phy->zero_count,
phy
->
in_sync
?
"IN_SYNC"
:
"OUT_OF_SYNC"
);
phy->in_sync ? "IN_SYNC" : "OUT_OF_SYNC");
*/
phy
->
sfn_sf
=
new_sfn_sf
;
}
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/rcc.band7.tm1.50PRB.nfapi.conf
View file @
eb92fa91
...
...
@@ -172,7 +172,7 @@ eNBs =
//////////
MME
parameters
:
mme_ip_address
= ( {
ipv4
=
"1
27.0.0.3
"
;
mme_ip_address
= ( {
ipv4
=
"1
92.168.12.26
"
;
ipv6
=
"192:168:30::17"
;
active
=
"yes"
;
preference
=
"ipv4"
;
...
...
@@ -181,14 +181,24 @@ eNBs =
NETWORK_INTERFACES
:
{
ENB_INTERFACE_NAME_FOR_S1_MME
=
"lo"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"127.0.0.2/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"lo"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"127.0.0.5/24"
;
#ENB_INTERFACE_NAME_FOR_S1_MME = "lo";
#ENB_IPV4_ADDRESS_FOR_S1_MME = "127.0.0.2/24";
#ENB_INTERFACE_NAME_FOR_S1U = "lo";
#ENB_IPV4_ADDRESS_FOR_S1U = "127.0.0.5/24";
#ENB_PORT_FOR_S1U = 2152; # Spec 2152
#ENB_IPV4_ADDRESS_FOR_X2C = "127.0.0.2/24";
#ENB_PORT_FOR_X2C = 36422; # Spec 36422
ENB_INTERFACE_NAME_FOR_S1_MME
=
"enp0s31f6"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"192.168.12.188/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"enp0s31f6"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"192.168.12.188/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
ENB_IPV4_ADDRESS_FOR_X2C
=
"1
27.0.0.2
/24"
;
ENB_IPV4_ADDRESS_FOR_X2C
=
"1
92.168.12.188
/24"
;
ENB_PORT_FOR_X2C
=
36422
;
# Spec 36422
};
}
);
...
...
@@ -196,7 +206,7 @@ eNBs =
MACRLCs
= (
{
num_cc
=
1
;
local_s_if_name
=
"lo"
;
local_s_if_name
=
"lo
:
"
;
remote_s_address
=
"127.0.0.1"
;
local_s_address
=
"127.0.0.2"
;
local_s_portc
=
50001
;
...
...
targets/RT/USER/lte-enb.c
View file @
eb92fa91
...
...
@@ -948,8 +948,8 @@ void init_eNB_proc(int inst) {
// Original Code from Fujitsu w/ old structure/field name
//pthread_create( &proc_rxtx[0].pthread_rxtx, attr0, eNB_thread_rxtx, &proc_rxtx[0] );
//pthread_create( &proc_rxtx[1].pthread_rxtx, attr1, eNB_thread_rxtx, &proc_rxtx[1] );
pthread_create
(
&
L1_proc
->
pthread
,
attr0
,
L1_thread
,
proc
);
pthread_create
(
&
L1_proc_tx
->
pthread
,
attr1
,
L1_thread
,
proc
);
pthread_create
(
&
L1_proc
->
pthread
,
attr0
,
L1_thread
,
L1_
proc
);
pthread_create
(
&
L1_proc_tx
->
pthread
,
attr1
,
L1_thread
,
L1_
proc
_tx
);
}
pthread_create
(
&
proc
->
pthread_prach
,
attr_prach
,
eNB_thread_prach
,
eNB
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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