mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
ef8c98cb71
The NIC router used to handle each type of packet-stream signal with a distinct method in the Interface class. However, merging those methods has advantages. It ensures that sent packets that were already acknowledged by the counter side are always released before handling received packets. This frees packet stream memory which facilitates the potential allocation of response packets while handling received packets. Furthermore, it simplifies the code and reduces the number of entry points into the router. This commit also removes the installation of signal handlers at packet streams for events that are of no interest for the router (TX-ready-to-ack / RX-ready-to-submit at NIC sessions and RX-ready-to-ack / TX-ready-to-submit at Uplink sessions). Fixes #4470
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.