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
9355495a
Commit
9355495a
authored
Oct 07, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unqueueing UL_TTI_REQs based on active harq sfn sf
Also fixed some silly spelling errors.
parent
39563f3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
7 deletions
+22
-7
executables/nr-ue.c
executables/nr-ue.c
+15
-3
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+1
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+3
-1
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
+3
-3
No files found.
executables/nr-ue.c
View file @
9355495a
...
...
@@ -257,14 +257,17 @@ static bool sfn_slot_matcher(void *wanted, void *candidate)
return
false
;
}
static
void
process_queued_nr_nfapi_msgs
(
int
sfn_slot
)
static
void
process_queued_nr_nfapi_msgs
(
NR_UE_MAC_INST_t
*
mac
,
int
sfn_slot
)
{
nfapi_nr_rach_indication_t
*
rach_ind
=
unqueue_matching
(
&
nr_rach_ind_queue
,
MAX_QUEUE_SIZE
,
sfn_slot_matcher
,
&
sfn_slot
);
nfapi_nr_rx_data_indication_t
*
rx_ind
=
unqueue_matching
(
&
nr_rx_ind_queue
,
MAX_QUEUE_SIZE
,
sfn_slot_matcher
,
&
sfn_slot
);
nfapi_nr_crc_indication_t
*
crc_ind
=
unqueue_matching
(
&
nr_crc_ind_queue
,
MAX_QUEUE_SIZE
,
sfn_slot_matcher
,
&
sfn_slot
);
nfapi_nr_dl_tti_request_t
*
dl_tti_request
=
get_queue
(
&
nr_dl_tti_req_queue
);
nfapi_nr_ul_dci_request_t
*
ul_dci_request
=
get_queue
(
&
nr_ul_dci_req_queue
);
nfapi_nr_ul_tti_request_t
*
ul_tti_request
=
get_queue
(
&
nr_ul_tti_req_queue
);
LOG_D
(
NR_MAC
,
"Try to get a ul_tti_req for sfn/slot %d %d from queue with %d items
\n
"
,
NFAPI_SFNSLOT2SFN
(
mac
->
active_harq_sfn_sf
),
NFAPI_SFNSLOT2SLOT
(
mac
->
active_harq_sfn_sf
),
nr_ul_tti_req_queue
.
num_items
);
nfapi_nr_ul_tti_request_t
*
ul_tti_request
=
unqueue_matching
(
&
nr_ul_tti_req_queue
,
MAX_QUEUE_SIZE
,
sfn_slot_matcher
,
&
mac
->
active_harq_sfn_sf
);
if
(
rach_ind
&&
rach_ind
->
number_of_pdus
>
0
)
{
...
...
@@ -318,6 +321,11 @@ static void process_queued_nr_nfapi_msgs(int sfn_slot)
save_nr_measurement_info
(
dl_tti_request
);
check_and_process_dci
(
dl_tti_request
,
tx_data_request
,
NULL
,
NULL
);
}
else
{
AssertFatal
(
false
,
"We dont have PDUs in either dl_tti %d or tx_req %d
\n
"
,
dl_tti_request
->
dl_tti_request_body
.
nPDUs
,
tx_data_request
->
Number_of_PDUs
);
}
}
if
(
ul_dci_request
&&
ul_dci_request
->
numPdus
>
0
)
{
...
...
@@ -373,6 +381,10 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
reset_queue
(
&
nr_rx_ind_queue
);
reset_queue
(
&
nr_crc_ind_queue
);
reset_queue
(
&
nr_uci_ind_queue
);
reset_queue
(
&
nr_dl_tti_req_queue
);
reset_queue
(
&
nr_tx_req_queue
);
reset_queue
(
&
nr_ul_dci_req_queue
);
reset_queue
(
&
nr_ul_tti_req_queue
);
NR_PRACH_RESOURCES_t
prach_resources
;
memset
(
&
prach_resources
,
0
,
sizeof
(
prach_resources
));
...
...
@@ -452,7 +464,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
nr_ue_ul_indication
(
&
ul_info
);
check_nr_prach
(
mac
,
&
ul_info
,
&
prach_resources
);
}
process_queued_nr_nfapi_msgs
(
sfn_slot
);
process_queued_nr_nfapi_msgs
(
mac
,
sfn_slot
);
}
return
NULL
;
}
...
...
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
9355495a
...
...
@@ -437,6 +437,7 @@ typedef struct {
bool
expected_dci
;
bool
index_has_dci
[
16
];
int
active_harq_sfn_sf
;
pthread_mutex_t
mutex_dl_info
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
9355495a
...
...
@@ -1283,8 +1283,10 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
// FIXME k0 != 0 currently not taken into consideration
current_harq
->
dl_frame
=
frame
;
current_harq
->
dl_slot
=
slot
;
mac
->
active_harq_sfn_sf
=
NFAPI_SFNSLOT2HEX
(
frame
,
(
slot
+
data_toul_fb
));
LOG_D
(
PHY
,
"Setting harq_status for harq_id %d, dl %d.%d
\n
"
,
harq_id
,
frame
,
slot
);
LOG_D
(
NR_PHY
,
"Setting harq_status for harq_id %d, dl %d.%d, sched ul %d.%d
\n
"
,
harq_id
,
frame
,
slot
,
frame
,
(
slot
+
data_toul_fb
));
}
...
...
openair2/NR_UE_PHY_INTERFACE/NR_IF_Module.c
View file @
9355495a
...
...
@@ -93,7 +93,7 @@ void nrue_init_standalone_socket(int tx_port, int rx_port)
}
assert
(
ue_tx_sock_descriptor
==
-
1
);
ue_tx_sock_descriptor
=
sd
;
LOG_D
(
NR_RRC
,
"Sucessfully set up tx_socket in %s.
\n
"
,
__FUNCTION__
);
LOG_D
(
NR_RRC
,
"Suc
c
essfully set up tx_socket in %s.
\n
"
,
__FUNCTION__
);
}
{
...
...
@@ -119,7 +119,7 @@ void nrue_init_standalone_socket(int tx_port, int rx_port)
}
assert
(
ue_rx_sock_descriptor
==
-
1
);
ue_rx_sock_descriptor
=
sd
;
LOG_D
(
NR_RRC
,
"Sucessfully set up rx_socket in %s.
\n
"
,
__FUNCTION__
);
LOG_D
(
NR_RRC
,
"Suc
c
essfully set up rx_socket in %s.
\n
"
,
__FUNCTION__
);
}
LOG_I
(
NR_RRC
,
"NRUE standalone socket info: tx_port %d rx_port %d on %s.
\n
"
,
tx_port
,
rx_port
,
stub_eth_params
.
remote_addr
);
...
...
@@ -745,7 +745,7 @@ void *nrue_standalone_pnf_task(void *context)
int
slot
=
0
;
LOG_I
(
NR_RRC
,
"Sucessfully started %s.
\n
"
,
__FUNCTION__
);
LOG_I
(
NR_RRC
,
"Suc
c
essfully started %s.
\n
"
,
__FUNCTION__
);
while
(
true
)
{
...
...
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