1. 06 May, 2024 11 commits
    • hsum's avatar
      Ensure Proper Timing for VNF and PNF Slot Allocation · 6fe8298d
      hsum authored
      Description:
      In scenarios where VNFs and PNFs are deployed on different machines within a network, it's crucial to maintain synchronization and ensure smooth operation. This commit addresses the need to keep the VNF slot ahead of 2 (as required for network deployment), while ensuring that PNFs wait appropriately to avoid overtaking the slot. Specifically, this involves measuring slot duration and implementing a wait mechanism to ensure that PNFs do not exceed a slot duration of 300 microseconds. This ensures proper coordination and timing between VNFs and PNFs, contributing to the overall stability and performance of the network deployment.
      6fe8298d
    • Ming-Hong Hsu's avatar
      Revert "Fix UE Harq Round Stats and Ping Issue" · 942ac99a
      Ming-Hong Hsu authored
      This reverts commit 697fa11fd12d8c0645c358de2ff2b3c360fff8be.
      942ac99a
    • Ming-Hong Hsu's avatar
      Revert "Refactor PNF and UE RRC handling" · d49078aa
      Ming-Hong Hsu authored
      This reverts commit 318508f3.
      d49078aa
    • Ming-Hong Hsu's avatar
      fd208822
    • hsum's avatar
      Refactor PNF handling of slot indication and buffer management · 8e8d33be
      hsum authored
      - Removed unused global variable `pnf_p7_recv`.
      - Refactored `recv_and_save_pnf_p7` function to be inline within `pnf_p7_slot_ind`.
      - Removed unnecessary computations and commented-out code related to slot shifting.
      - Simplified slot buffer handling by removing redundant assignments and commented-out code.
      - Renamed and organized function calls related to handling DL/UL TTI, DCI, and TX data requests.
      - Cleaned up debug print statements and unused variables.
      8e8d33be
    • hsum's avatar
      Refactor PNF and UE RRC handling · ed2a351c
      hsum authored
      Description:
      - Refactored the handling of PNF (Physical Network Function) and UE (User Equipment) RRC (Radio Resource Control) interactions.
      - Removed commented-out code related to slot shift in PNF handling.
      - Modified the logic to apply slot shift to the incoming sfn_sf in PNF handling.
      - Adjusted the logic to correctly handle wrap-around when applying slot shift in PNF handling.
      - Streamlined the processing of DL (Downlink) TTI (Transmission Time Interval) requests in PNF handling.
      - Updated the handling of UL (Uplink) TTI requests in PNF handling.
      - Enhanced the processing of UL DCI (Uplink Downlink Control Information) requests in PNF handling.
      - Improved the handling of TX (Transmit) data requests in PNF handling.
      - Modified logging levels in UE RRC handling for BCCH (Broadcast Control Channel) data indication.
      - Added logging of BCCH BCH (Broadcast Channel) indication type in UE RRC handling.
      
      Changes:
      - Removed commented-out code related to slot shift.
      - Modified PNF handling to correctly apply slot shift and handle wrap-around.
      - Refactored DL and UL TTI request processing in PNF handling.
      - Updated logging levels and added additional logging in UE RRC handling.
      
      Files Modified:
      - nfapi/oai_integration/nfapi_pnf.c
      - nfapi/open-nFAPI/pnf/src/pnf_p7.c
      - openair2/RRC/NR_UE/rrc_UE.c
      ed2a351c
    • hsum's avatar
      Fix UE Harq Round Stats and Ping Issue · 49c85b93
      hsum authored
      Description:
      
      Currently, the UE is consistently showing Harq round stats for Downlink as 0/0/0, indicating a problem with the downlink communication.
      This issue is leading to an inability to ping the UE successfully.
      Investigating and addressing the root cause of the Harq round stats being stuck at 0/0/0 is essential to restore proper downlink communication and enable successful pinging of the UE.
      Once resolved, this fix will enhance the overall functionality and reliability of the system.
      49c85b93
    • hsum's avatar
      Fix P5 packing and unpacking issue for TDD table · 53311a96
      hsum authored
      In the patch 71e254, an issue was identified where the number of slots in the TDD table was hardcoded inconsistently during packing and unpacking. This led to a mismatch in the number of slots processed, causing errors during execution.
      
      Upon further investigation, it was found that the number of slots in the TDD table should be determined dynamically based on the value of mu, derived from the configured tdd-UL-DL-ConfigurationCommon.
      
      To address this issue, this commit introduces dynamic allocation of memory for the TDD table during unpacking based on the value of mu. Additionally, the packing process now calculates the number of slots to pack dynamically, ensuring consistency between packing and unpacking.
      
      This change resolves the discrepancy in the number of slots processed during packing and unpacking, ensuring that the PNF receives a complete and accurate TDD table.
      53311a96
    • Ming-Hong Hsu's avatar
      ba129aa9
    • hsum's avatar
      Refactor DL TTI request handling and improve code clarity · 967b7b43
      hsum authored
      This commit refactors the DL TTI request handling in the PNF P7 module and enhances code clarity.
      
      Changes made:
      - Updated the definition of `dl_tti_req` in the `nfapi_pnf_interface.h` header file to directly store the `nfapi_nr_dl_tti_request_t` structure instead of a pointer.
      - Refactored DL TTI request processing in the `pnf_handle_dl_tti_request` function in `pnf_p7.c` to simplify the code structure and improve readability.
      - Introduced a static function, `cp_nr_dl_tti_req`, to copy DL TTI request structures, improving code modularity and reducing duplication.
      - Updated DL TTI request handling to utilize the refactored logic.
      - Removed unnecessary deallocation of DL TTI request in error handling path to prevent double deallocation.
      967b7b43
    • hsum's avatar
      Refactor UL TTI request handling and add clarity to function logic · 125b5338
      hsum authored
      This commit refactors the UL TTI request handling in the PNF P7 module and improves the clarity of function logic.
      
      Changes made:
      - Refactored UL TTI request handling to simplify code structure and improve readability.
      - Introduced a static function, `cp_nr_ul_tti_req`, to copy UL TTI request structures, improving code modularity and reducing duplication.
      - Updated UL TTI request processing to utilize the refactored logic.
      - Removed unnecessary deallocation of UL TTI request in error handling path to prevent double deallocation.
      
      Additionally, the commit enhances comments and debug traces for better understanding of the code flow and debugging.
      125b5338
  2. 23 Apr, 2024 4 commits
    • hsum's avatar
      Refactor is_nr_p7_request_in_window function for clarity and efficiency · 4c410608
      hsum authored
      The function now utilizes simpler variable names and logic to determine if a given NR P7 request falls within the timing window.
      
      The logic for determining if a request is within the timing window is as follows:
      - The function calculates the absolute difference between the current and received SFN slots, taking into account the possibility of wraparound.
      - If the absolute difference is greater than half of the maximum SFN slot value, it subtracts this difference from the maximum SFN slot value to get the actual difference.
      - The function then checks if this difference is less than or equal to the specified timing window. If it is, the request is considered to be within the window.
      
      Additionally, the commit updates the function signature to return a boolean value for better readability and consistency.
      
      Changes made:
      - Simplified variable names for readability
      - Improved logic for handling wraparound scenarios
      - Updated function signature to return a boolean value
      4c410608
    • chenyi's avatar
      do not allocate ul_dci on heap, introduces huge delay · 21d6cf57
      chenyi authored
      - Process ul_dci whenever the number of ul_dci PDUs in the buffer > 0.
      - Replace dynamic allocation on the heap with stack allocation.
      - New function, **`cp_nr_ul_dci_req`**, to copy the **`ul_dci_req`**.
      21d6cf57
    • hsum's avatar
      Revert "Let UL_TTI speed up and newly developed cp_nr_ul_tti_req" · e9cb8b1c
      hsum authored
      This reverts commit a05184e8.
      e9cb8b1c
    • hsum's avatar
  3. 22 Apr, 2024 2 commits
  4. 19 Apr, 2024 1 commit
    • hsum's avatar
      remove · 868eadd0
      hsum authored
      868eadd0
  5. 18 Apr, 2024 1 commit
  6. 17 Apr, 2024 2 commits
  7. 16 Apr, 2024 3 commits
  8. 15 Apr, 2024 9 commits
  9. 12 Apr, 2024 5 commits
  10. 11 Apr, 2024 2 commits
    • hsum's avatar
      Remove print log, focus on Pack/unpack · 5ede75aa
      hsum authored
      5ede75aa
    • hsum's avatar
      Find DL traffic assertion reason: · 15e2b440
      hsum authored
      The PMI needs to be zero.
      The prgs_list index always should be zero.
      prgs_list[0] needs to be zero. If iperf is used, it will abort, and the value will be unexpected, such as 5466, 37669, 5980.
      The problem may lie in nFAPI pack/unpack.
      15e2b440