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
29ccc58e
Commit
29ccc58e
authored
Mar 16, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slightly refactor configure_fapi_dl_Tx()
parent
7c5b67a1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
18 deletions
+12
-18
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+2
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+1
-3
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+6
-8
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+3
-4
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
29ccc58e
...
...
@@ -194,8 +194,6 @@ void nr_schedule_ue_spec(module_id_t module_idP, frame_t frameP, sub_frame_t slo
const
int
CC_id
=
0
;
gNB_MAC_INST
*
gNB_mac
=
RC
.
nrmac
[
module_idP
];
nfapi_nr_dl_tti_request_body_t
*
dl_req
=
&
gNB_mac
->
DL_req
[
CC_id
].
dl_tti_request_body
;
nfapi_nr_pdu_t
*
tx_req
=
&
gNB_mac
->
TX_req
[
CC_id
].
pdu_list
[
gNB_mac
->
TX_req
[
CC_id
].
Number_of_PDUs
];
NR_UE_list_t
*
UE_list
=
&
gNB_mac
->
UE_list
;
...
...
@@ -313,7 +311,8 @@ void nr_schedule_ue_spec(module_id_t module_idP, frame_t frameP, sub_frame_t slo
for
(
int
j
=
0
;
j
<
(
TBS_bytes
-
offset
);
j
++
)
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
UE_id
].
payload
[
0
][
offset
+
j
]
=
0
;
configure_fapi_dl_Tx
(
module_idP
,
frameP
,
slotP
,
dl_req
,
tx_req
,
TBS_bytes
,
gNB_mac
->
pdu_index
[
CC_id
]);
configure_fapi_dl_Tx
(
gNB_mac
,
CC_id
,
frameP
,
slotP
,
TBS_bytes
,
UE_list
->
DLSCH_pdu
[
0
][
0
].
payload
[
0
]);
#if defined(ENABLE_MAC_PAYLOAD_DEBUG)
LOG_I
(
MAC
,
"%d.%d first 10 payload bytes UE %d TBSsize %d:"
,
frameP
,
slotP
,
UE_id
,
TBS_bytes
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
29ccc58e
...
...
@@ -261,8 +261,6 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
gNB_MAC_INST
*
gNB_mac
=
RC
.
nrmac
[
module_idP
];
//NR_COMMON_channels_t *cc = nr_mac->common_channels;
//NR_ServingCellConfigCommon_t *scc=cc->ServingCellConfigCommon;
nfapi_nr_dl_tti_request_body_t
*
dl_req
=
&
gNB_mac
->
DL_req
[
CC_id
].
dl_tti_request_body
;
nfapi_nr_pdu_t
*
tx_req
=
&
gNB_mac
->
TX_req
[
CC_id
].
pdu_list
[
gNB_mac
->
TX_req
[
CC_id
].
Number_of_PDUs
];
mac_rlc_status_resp_t
rlc_status
;
...
...
@@ -422,7 +420,7 @@ void nr_schedule_uss_dlsch_phytest(module_id_t module_idP,
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
][
offset
+
j
]
=
0
;
// mac_pdu[offset + j] = 0;
}
configure_fapi_dl_Tx
(
module_idP
,
frameP
,
slotP
,
dl_req
,
tx_req
,
TBS_bytes
,
gNB_mac
->
pdu_index
[
CC_id
]);
configure_fapi_dl_Tx
(
gNB_mac
,
CC_id
,
frameP
,
slotP
,
TBS_bytes
,
gNB_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
]);
if
(
IS_SOFTMODEM_NOS1
){
#if defined(ENABLE_MAC_PAYLOAD_DEBUG)
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
29ccc58e
...
...
@@ -1525,18 +1525,16 @@ uint32_t configure_fapi_dl_pdu(gNB_MAC_INST *nr_mac,
return
TBS
;
//Return TBS in bytes
}
void
configure_fapi_dl_Tx
(
module_id_t
Mod_idP
,
void
configure_fapi_dl_Tx
(
gNB_MAC_INST
*
nr_mac
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
slotP
,
nfapi_nr_dl_tti_request_body_t
*
dl_req
,
nfapi_nr_pdu_t
*
tx_req
,
int
tbs_bytes
,
int16_t
pdu_index
)
{
int
CC_id
=
0
;
uint8_t
*
mac_pdu
)
{
nfapi_nr_dl_tti_request_body_t
*
dl_req
=
&
nr_mac
->
DL_req
[
CC_id
].
dl_tti_request_body
;
nfapi_nr_pdu_t
*
tx_req
=
&
nr_mac
->
TX_req
[
CC_id
].
pdu_list
[
nr_mac
->
TX_req
[
CC_id
].
Number_of_PDUs
];
nfapi_nr_dl_tti_request_pdu_t
*
dl_tti_pdsch_pdu
=
&
dl_req
->
dl_tti_pdu_list
[
dl_req
->
nPDUs
+
1
];
nfapi_nr_dl_tti_pdsch_pdu_rel15_t
*
pdsch_pdu_rel15
=
&
dl_tti_pdsch_pdu
->
pdsch_pdu
.
pdsch_pdu_rel15
;
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
Mod_idP
];
LOG_D
(
MAC
,
"DLSCH PDU: start PRB %d n_PRB %d start symbol %d nb_symbols %d nb_layers %d nb_codewords %d mcs %d TBS (bytes): %d
\n
"
,
pdsch_pdu_rel15
->
rbStart
,
...
...
@@ -1555,7 +1553,7 @@ void configure_fapi_dl_Tx(module_id_t Mod_idP,
tx_req
->
num_TLV
=
1
;
tx_req
->
TLVs
[
0
].
length
=
tbs_bytes
+
2
;
memcpy
(
(
void
*
)
&
tx_req
->
TLVs
[
0
].
value
.
direct
[
0
],
(
void
*
)
&
nr_mac
->
UE_list
.
DLSCH_pdu
[
0
][
0
].
payload
[
0
],
tbs_bytes
);
;
memcpy
(
tx_req
->
TLVs
[
0
].
value
.
direct
,
mac_pdu
,
tbs_bytes
)
;
nr_mac
->
TX_req
[
CC_id
].
Number_of_PDUs
++
;
nr_mac
->
TX_req
[
CC_id
].
SFN
=
frameP
;
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
29ccc58e
...
...
@@ -91,13 +91,12 @@ uint32_t configure_fapi_dl_pdu(gNB_MAC_INST *nr_mac,
void
config_uldci
(
NR_BWP_Uplink_t
*
ubwp
,
nfapi_nr_pusch_pdu_t
*
pusch_pdu
,
nfapi_nr_dl_tti_pdcch_pdu_rel15_t
*
pdcch_pdu_rel15
,
dci_pdu_rel15_t
*
dci_pdu_rel15
,
int
*
dci_formats
,
int
*
rnti_types
);
void
configure_fapi_dl_Tx
(
module_id_t
Mod_idP
,
void
configure_fapi_dl_Tx
(
gNB_MAC_INST
*
nr_mac
,
int
CC_id
,
frame_t
frameP
,
sub_frame_t
slotP
,
nfapi_nr_dl_tti_request_body_t
*
dl_req
,
nfapi_nr_pdu_t
*
tx_req
,
int
tbs_bytes
,
int16_t
pdu_index
);
uint8_t
*
mac_pdu
);
void
nr_schedule_uss_dlsch_phytest
(
module_id_t
module_idP
,
frame_t
frameP
,
...
...
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