• Robert Schmidt's avatar
    F1AP IDs: Allow AddMod, fix concurrency bug · 6d5e29f5
    Robert Schmidt authored
    Modify xu_add_f1_ue_data() to be xu_addmod_f1_ue_data(), i.e., "addmod"
    behavior in which it is possible to also update f1_ue_data. I do it this
    way since an xu_updade_f1_ue_data() function would be almost the same as
    the add function (only deleting existing data, whereas the original
    add() was asserting in that case).
    
    Modify tests to test for this behavior.
    
    This fixes a concurrency bug. For instance, during reestablishment, the
    CU needs to update the DU UE ID under which the UE is identified in the
    DU. Previously, the CU would remove, then add the DU UE ID info.
    At the same time, the PDCP thread might look up the information. This
    can lead to asserts. Use the above addmod functionality to do the
    remove-add under a mutex.
    6d5e29f5
mac_rrc_dl_handler.c 38 KB