• Robert Schmidt's avatar
    Reorder DLSCH MAC PDU logic · a18ed9d9
    Robert Schmidt authored
    Before this commit, the DLSCH scheduler would construct the MAC PDU by
    reading RLC data into a memory on the stack, and then construct the PDU
    with CEs first. There are at least two problems:
    - we need to keep track of the exact number of bytes of CEs (cumbersome)
      to calculate the number of MAC SDUs to include
    - we needlessly copy data around.
    
    This commit does the following instead:
    - write all CEs first (no need of keeping track of this in DLSCH and a
      separate function)
    - then read MAC SDUs directly into nFAPI as much as possible or
      necessary, without recopying
    a18ed9d9
gNB_scheduler_dlsch.c 41.7 KB