Commit Graph

8910 Commits

Author SHA1 Message Date
Francisco Paisana 296949b5f9 stack lte: use adapter for pdcp->gtpu write_pdu interface that converts lcid to eps bearer id 2021-09-02 17:12:04 +02:00
Francisco Paisana 2ade4628ca stack lte: create an gtpu-pdcp adapter class that correctly converts lcids to eps bearers and vice-versa 2021-09-02 17:12:04 +02:00
Francisco Paisana 4b2f079581 gtpu: renamed lcid to eps_bearer_id as parte of the refactor of gtpu to use eps_bearer_ids 2021-09-02 17:12:04 +02:00
Andre Puschmann b27d1d913e enb_stack_lte: use bearer manager class
* user common bearer manager in eNB
* register/deregister bearers (LTE only so far
* provide dummy stack class for RRC tests
2021-09-02 17:12:04 +02:00
Andre Puschmann 3949a727a7 enb_interface: add stack interface for RRC
RRC uses the interface to register/deregister EPS bearer
2021-09-02 17:12:04 +02:00
Andre Puschmann db8b710442 bearer_manager: move to lib folder and extend for multiple users
prepare bearer manager to be used by eNB which requires
to support multiple RNTIs
2021-09-02 17:12:04 +02:00
Andre Puschmann ebef8a4cc4 enb_stack_lte: implement the PDCP interface for GTPU on the stack
this prepares for a change in which GTPU no longer writes into PDCP
directly but instead uses the stack as a wrapper.

For this the interface will be changed to use the EPS bearer ID instead
of the LCID

The stack will know which PDCP entity (EUTRA or NR) is currently associated
with the EPS bearer ID and will forward the PDU accordingly.
2021-09-02 17:12:04 +02:00
faluco 5f9aceb8b6 Fix alignment issue with the stdout metrics in srsue. 2021-09-02 17:10:56 +02:00
Francisco Paisana 75cd71b794 sched,nr: fix older gcc compilation array initialization 2021-09-01 20:08:11 +02:00
Francisco Paisana 510a87e4b2 sched,nr: added logic to update UE DL and UL buffer status 2021-09-01 20:08:11 +02:00
Francisco Paisana 020bec025e sched: created class common to LTE and NR for ue buffer status management 2021-09-01 20:08:11 +02:00
Francisco Paisana de06dbc684 sched,nr: implemented basic UE buffer status manager 2021-09-01 20:08:11 +02:00
Francisco Paisana 2fb2598f8c sched,nr: avoid extra copy of DL result and other small fixes 2021-09-01 20:08:11 +02:00
Xavier Arteaga 9e1669c403 Better comments in minimum size symbol selection 2021-08-31 18:56:41 +02:00
Xavier Arteaga 4858202bf6 Fix NR symbol size for 270RB 2021-08-31 18:56:41 +02:00
Xavier Arteaga 54c39d8447 Set nr_phy_test scheduler logger to the level defined in the arguments 2021-08-31 18:56:41 +02:00
Xavier Arteaga 14a85d31ec Fix symbol size simensioning for LTE standard rate 2021-08-31 18:56:41 +02:00
Xavier Arteaga 01390a7340 Better NR softbuffer size adjustment 2021-08-31 18:56:41 +02:00
Andre Puschmann a80fdc0703 mac_nr: set logger slot context in get_dl_sched() 2021-08-31 17:20:13 +02:00
Andre Puschmann f20e131083 mac_nr: when reserving RNTI in MAC, don't automatically reserve it in RRC
we assume that RRC itself will reserve the RNTI if it needs to
2021-08-31 17:20:13 +02:00
Andre Puschmann 9bf74843f6 mac_pdu_nr: add error handling to init_tx() method
check provided byte_buffer and return error if it's not valid
2021-08-31 17:20:13 +02:00
Andre Puschmann 4ef1ac2649 gw: (re-)use class mutex when updating the DL/UL metrics 2021-08-31 17:01:50 +02:00
Andre Puschmann aa43e3c8d6 ue,mac: adding missing mutex when updating metrics 2021-08-31 17:01:50 +02:00
Andre Puschmann e1776f8d28 ue,phy: update the PRACH params inside the lambda that also executes the reconfig
setting the new PRACH params (writing the the local var) needs to protected as well
because it is called from the RRC context and the PHY worker will call configure_prach_params()
if it sees changes to it.
2021-08-31 17:01:50 +02:00
Andre Puschmann 40499e6b6d ue_stack_lte: use std::atomic for running var 2021-08-31 17:01:50 +02:00
Andre Puschmann 79cdc28015 nas_test_common: call NAS layer from stack thread context
since NAS layers insn't thread safe, all calls must come from
the same thread
2021-08-31 17:00:59 +02:00
Andre Puschmann 78d60bc138 nas: remove all uses of atomic from 4G and 5G classes
the NAS classes aren't thread safe and thread-safety shouldn't be
pretended by using atomics. Remove them and add explicit notice.
2021-08-31 17:00:59 +02:00
Fabian Eckermann c63932f514 Added RACH, PDSCH, PUCCH, Sounding Reference Signal and UL Power Control configurations from target cell to RRCConnectionReconfigurationMessage 2021-08-31 15:47:46 +02:00
Francisco Paisana 5f9cfb56f6 lte,gtpu: fix and refactor gtpu tunnel management during handover 2021-08-31 15:46:46 +02:00
Francisco Paisana b311806179 mac,nr: avoid repacking NR DL retxs 2021-08-31 15:46:05 +02:00
Francisco Paisana 01441d143d mac,nr: avoid use of uninitialized rnti value 2021-08-31 15:46:05 +02:00
Francisco Paisana fec60344dd sched,nr: fix rar softbuffer allocation 2021-08-27 15:50:23 +02:00
Francisco Paisana 04e5c81edf sched,nr: nr_phy_test now uses the whole mac class rather than just the scheduler 2021-08-27 15:50:23 +02:00
Francisco Paisana 05a5f4115f sched,nr: extended sched nr DL output to account for RAR content and assist with RAR encoding in the mac_nr class 2021-08-27 15:50:23 +02:00
Francisco Paisana b486d2a1b5 sched,nr: implement prb grant fmt formatting 2021-08-26 12:09:11 +02:00
Francisco Paisana 8686a17f69 sched,nr: fill remaining DCI fields of RAR in NR scheduler 2021-08-26 12:09:11 +02:00
Francisco Paisana da4b7e4f80 sched,nr: fix sched RAR NR test; update test assert macros 2021-08-26 12:09:11 +02:00
Francisco Paisana 8f00c9363c sched,nr: change ra nr sched and bwp allocator interfaces 2021-08-26 12:09:11 +02:00
Francisco Paisana 3d810bc88a sched,nr: fix RAR DCI values and extended RAR test 2021-08-26 12:09:11 +02:00
Francisco Paisana 2b114cb7b9 sched,nr: create simple NR scheduler RAR test 2021-08-26 12:09:11 +02:00
Xavier Arteaga 8aa7ae7d95 Remove unused attribute 2021-08-26 09:34:43 +02:00
Xavier Arteaga 4cb633e6e6 UE dicards NR CFO measurement if SNR is negative 2021-08-26 09:34:43 +02:00
Xavier Arteaga 83b9b2d1ff Implemented UE open loop CFO compensation for NR 2021-08-26 09:34:43 +02:00
Xavier Arteaga 5aa2279990 Fix NZP-CSI-RS CFO sign 2021-08-26 09:34:43 +02:00
Xavier Arteaga 7da2d20447 Added UE UL NR frequency offset option 2021-08-26 09:34:43 +02:00
Xavier Arteaga cfe2b305a1 Fix CORESET0 related PDSCH resource allocation procedure 2021-08-26 09:34:43 +02:00
Xavier Arteaga 36207db615 Added CORESET start_rb helper function 2021-08-26 09:34:43 +02:00
Xavier Arteaga 89ef3b64b4 Optimization NR PDCCH mapping minor optimization 2021-08-26 09:34:43 +02:00
Xavier Arteaga ae0d8f83f0 Add PDCCH interleaved mapping in phy_dl_nr_test and iterate all possible 15kHz SCS bandwidths 2021-08-26 09:34:43 +02:00
Xavier Arteaga 9c3dd56398 Added PDCCH DMRS interleaved mapping 2021-08-26 09:34:43 +02:00