mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Make fh_timer_tick robust against CLOCK_REALTIME jumps. In case of forward jump the symbol callback will be called for each missed symbol. In case of backwards jump the function will return without calling any callbacks. This continues until the local timer catches up to the last callback symbol. Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org>
Fronthaul core libraries
This directory contains the core logic shared across the fronthaul stack components.
Components
fh_recv: Providesfh_recv_cb-a callback at packet reception.fh_send: Providesfh_send_immediate- a way to send fronthaul packets immediately.fh_timer: Providesfh_timer_cb- a callback at each symbol.
Threading
Callbacks fh_recv_cb and fh_timer_cb are executed from the same thread. This makes the design of the packet processor simpler by
serializing timer and packet RX events. The functions registered to these callbacks should be very fast to prevent blocking the CPU
for too long.
fh_send_immediate does not require a dedicated CPU and instead uses locking to allow immediate sending from many cores at the same time. It does not support delayed sending of packets. All delays need to be handled by the application.