srsLTE/srsenb/hdr
Andre Puschmann a7911f0dab pdcp,rlc: refactor SDU queueing policy
this patch refactors the SDU queuing and dropping policy of the RLC and PDCP layer.
the previous design had issues when packets have been generated at a higher
rate above the PDCP than they could be consumed below the RLC.

When the RLC SDU queues were full, we allowed two policies, one to block on the write
and the other to drop the SDU. Both options are not ideal because they either
lead to a blocking stack thread or to lost PDCP PDUs.

To avoid this, this patch makes the following changes:

* PDCP monitors RLC's SDU queue and drops packets on its north-bound SAP if queues are full
  * a new method sdu_queue_is_full() has been added to the RLC interface for PDCP
* remove blocking write from pdcp and rlc write_sdu() interface
  * all writes into queues need to be non-blocking
  * if Tx queues are overflowing, SDUs are dropped above PDCP, not RLC
* log warning if RLC still needs to drop SDUs
  * this case should be avoided with the monitoring mechanism
2020-07-13 17:05:28 +02:00
..
phy Reorganized priorities to avoid GW starve the CPU 2020-07-02 11:52:14 +02:00
stack pdcp,rlc: refactor SDU queueing policy 2020-07-13 17:05:28 +02:00
cfg_parser.h Updated copyright 2020-03-16 11:26:06 +01:00
enb.h srsENB: Derive inactivity timeout from T310 and T311 and N310. 2020-06-26 12:19:57 +01:00
metrics_csv.h Updated copyright 2020-03-16 11:26:06 +01:00
metrics_stdout.h Updated copyright 2020-03-16 11:26:06 +01:00
parser.h add srsenb::rrc class 2020-06-05 15:10:11 +01:00