Andre Puschmann
f07a9277a0
fix RLC AM issue where an invalid status PDU was generated
...
happens when very small grant is provided and the status
PDU generation fails because of a too small grant
add extra check to prevent that ACK_SN is also in NACKS list
2019-10-04 16:29:03 +02:00
Andre Puschmann
c99d5077c8
add RLC UM NR transmitter
2019-09-20 16:33:25 +02:00
Francisco Paisana
67d6a25194
Moving mac timers to stack timers ( #638 )
...
* first step towards moving MAC timers to stack. Mac is still using its own timers. srslte::timers class can be restructured.
* moved timers out of the UE MAC
2019-09-04 15:28:09 +02:00
Andre Puschmann
e42449532b
fix wrong namespace definition in various places
2019-08-07 15:32:49 +02:00
Pedro Alvarez
6efa944b5e
Removed srslte prefix from pdcp_config_t
2019-07-30 15:01:50 +02:00
Pedro Alvarez
8c10eabf23
Changed PDCP LTE to use unique_lock.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
494be243c0
Changed security direction to use an enum.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
491695ab77
Clang-formated PDCP NR PR.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
38bbc55631
Added tests for PDCP NR Rx with SN Len = 18. In-sequence reception seems to work.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d4aeb12db8
Adding more TX tests to PDCP NR entity.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
39e3800781
Fixed header packing for SN length 18 for PDCP NR. First TX test is passing.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d399c65082
Starting to add PDCP SN len 18 unit tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
7a69e8ba64
Removed comment.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
adfe9f950e
Fixed issue in computing the SN. Added test for packets received in sequence for PDCP NR. Test is passing now.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
2104e6bbcf
Added test for more TX packets in PDCP NR. Tests passing for TX_NEXT = 0, 2048 and 4096
2019-07-30 15:01:50 +02:00
Pedro Alvarez
ecd164ed65
Starting to add more tx tests to PDCP NR tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
af2b593b8c
Added check for integrity in test. First Rx PDCP NR test passing.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d3b6828082
Changed PDCP configuration to explicitly have tx and rx direction. Decrypt on PDCP NR seems fine.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
7e6725f0a2
Fixing up PDCP NR tx test. Starting to add rx test.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
378c8d247e
Starting to add the mechanisms to store the last PDU in the PDCP tests.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
73e30743d1
Added enum to PDCP config to replace two bools.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
457f35699d
Reverted back to a single config structure between PDCP NR and PDCP LTE.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
810cacdc02
Adding write_data_header and append_mac helper functions to PDCP NR entity.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
d1ac121100
Writting PDU into PDCP in tx test.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
c9e99443d8
Adding PDCP NR Tx test.
2019-07-30 15:01:50 +02:00
Pedro Alvarez
4bb99464ed
Starting to add PDCP NR tests.
2019-07-30 15:01:50 +02:00
Andre Puschmann
2ae35e4ce0
make sure status PDU doens't exceed grant size
2019-07-14 07:29:10 +02:00
Ismael Gomez
8c41625599
Add RLC suspend and resume
2019-07-12 13:08:42 +02:00
Andre Puschmann
db196cc052
add RLC AM test for status PDU generation with small and big MAC grants
2019-07-12 13:06:39 +02:00
Andre Puschmann
9f3a947c02
modify RLC AM retx test to provide exactly a MAC opportunity of the size
...
that is reported as buffer state
2019-07-12 13:06:39 +02:00
Francisco Paisana
92b4b168fe
added default rlc um and am in the interface as factories
2019-07-05 10:44:15 +02:00
Francisco Paisana
b903c1a52c
made default init for rlc um test
2019-07-05 10:44:15 +02:00
Francisco Paisana
58e2e51044
removed rlc_interfaces. The rlc_cnfg types are now part of the rrc_interface_types. Removed implicit RB initialization in the RLC.
2019-07-05 10:44:15 +02:00
Francisco Paisana
c5509caece
added extra operators and remove rrc_asn1 in some cmake targets
2019-07-05 10:44:15 +02:00
Francisco Paisana
b936629221
removed rrc asn1 header from bcd_helpers, from rlc_interface, and rlc tests
2019-07-05 10:44:15 +02:00
Andre Puschmann
701db61fde
rlc: extend stress tester to simulate MAC PDU corruption
2019-07-04 14:43:20 +02:00
Andre Puschmann
58763fb714
stack: move initialization of log object into ctor
...
this fixes the issue when the stack is torn down if, for example,
the radio couldn't be loaded correctly. it will hence call stop() on all stack
components which are not initialzized yet, and logging therefore doesn't work.
the log object is know during contruction time and therefore can be passed
in as soon as possible.
2019-06-27 14:51:33 +02:00
Andre Puschmann
b32254c5e2
use lock_guard for GW
2019-06-12 20:44:23 +02:00
Andre Puschmann
89416a67c7
increase timeout for rlc stress tests
...
for valgrind where we sometimes hit the default timeout of 1500s
2019-06-12 20:44:23 +02:00
Francisco Paisana
415d3418b6
reorganized enb to mirror ue director/class structure with a stack class
2019-06-07 15:41:56 +02:00
Andre Puschmann
e8d6236975
remove init for all RLC TM/UM/AM
...
- all RLC entities are now initialized during contruction
- there is no need to check for, e.g., existance of timers, during
runtime
- there is also no need to call re-init during resume
- timers are freed in dtor
2019-06-06 14:34:25 +02:00
Ismael Gomez
ade720e032
Add RLC resume procedure
2019-06-06 14:34:25 +02:00
Andre Puschmann
e47010130f
extend thread class to set unique thread name in ctor
...
this will also extend all classes that use srslte::thread
to specify the name of the thread in the ctor as well
as to set the name of the worker threads in the thread pool
the thread name will be displayed in gdb.
2019-06-03 15:03:20 +02:00
Francisco Paisana
0e3baa0f2f
Renamed the reset() method of byte_buffer_t to clear()
2019-05-16 12:35:01 +02:00
Francisco Paisana
3bedc93ba5
added _t to unique_byte_buffer type
2019-05-16 12:35:01 +02:00
Francisco Paisana
f469e2178b
replaced byte_buffer_t allocated by the buffer pool for unique_byte_buffer which is safer and easier to use
2019-05-16 12:35:01 +02:00
Francisco Paisana
7be183c223
rework scheduler
2019-05-14 22:34:50 +02:00
Andre Puschmann
723cd71a3a
remove usage of <assert> in rlc_um_test
2019-05-03 10:58:05 +02:00
Andre Puschmann
46cc5a1985
use buffer pool in rlc_um_test
2019-05-03 10:52:16 +02:00
Pedro Alvarez
f2530eb57b
Fix rlc_am_data_test to avoid compiler warning from memset
2019-05-02 11:41:59 +02:00