summaryrefslogtreecommitdiff
path: root/src/lib/shm_rbuff.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Refactor shm_rdrbuff and shm_rbuffDimitri Staessens2017-11-301-0/+175
| | | | | | | | | | This refactors the creation of shm_rdrbuff and shm_rbuff elements. All cleanup is now handled and the common code between the _open() and _create() calls is moved to a static function. Common code between the pthread and lockless rbuff implementations was moved to shm_rbuff.c Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
* build: Revise the build systemdimitri staessens2017-08-211-2/+5
| | | | | | | | | | This revises the build system to have configuration per system component. System settings can now be set using cmake. The standard compliance defines were removed from configuration header and are set in the sources where needed. Also some small code refactors, such as moving the data for shims out of the ipcp structure to the respective shims were performed.
* build: Replace fsf snail mail with contact URLdimitri staessens2017-08-131-2/+1
|
* lib: Fix some issues in lockless rbuffdimitri staessens2017-04-011-1/+25
|
* lib: Lockless implementation of the rbuffdimitri staessens2017-04-011-404/+4
|
* lib: Add queued SDUs when adding fd to flow_setdimitri staessens2017-03-211-0/+20
| | | | | This solves some race conditions where packets arrive on a flow before it is added to a flow_set.
* Change email addresses to ugent.beSander Vrijders2017-03-031-1/+2
| | | | | | | Our mailserver was migrated from intec.ugent.be to the central ugent.be emailserver. This PR updates the header files to reflect this change as well. Some header files were also homogenized if the parameters within the functions were badly aligned.
* build: Update licenses and copyrightdimitri staessens2017-01-091-10/+11
| | | | | Copyright is set to 2016 - 2017. License text on includes and sources in the library are changed to indicate the LGPLv2.1 license.
* ouroboros: Correct license statementsdimitri staessens2016-12-241-3/+2
| | | | | This corrects the license statements on all files. Installed headers are LGPLv2.1, the rest of the code is GPLv2.
* lib: Simplify shm_rbuff_read_bdimitri staessens2016-12-121-12/+6
|
* lib: Remove logs from stable sourcesdimitri staessens2016-12-031-52/+17
| | | | | This removes log output in applications and some size_t printf errors when compiling on 32 bit machines.
* lib, irmd: Ensure rbuffs are empty upon destructiondimitri staessens2016-11-301-2/+8
| | | | Also cleans up the flow_set if an AP-I dies abruptly.
* lib: Deprecate shm_rbuff_resetdimitri staessens2016-11-251-10/+0
|
* lib: Remove dst_api field from rdrbuff blocksdimitri staessens2016-11-171-11/+11
| | | | | | Now that we have an rbuff per flow per AP, there is no more need to keep the dst_api in the rdrbuff. This also simplifies the sanitizer in the irmd.
* lib, ipcpd: Further stabilization of flowsdimitri staessens2016-10-261-11/+36
| | | | | | | | | | | The steps for flow deallocation have been further refined. An operation ipcp_flow_fini() which wait for all SDUs to be read from a flow has been added. The shim IPCPs and the local IPCP have been adapted to this new API. Deallocation messages have been removed from the shim IPCPs, since there is insufficient state synchronisation between them to make this work reliably.
* build: Compile with strict conversiondimitri staessens2016-10-221-14/+14
| | | | | This has the code checked with -Wcast-qual and -Wconversion flags. These flags were removed because SWIG generated code fails.
* lib: Move rbuff creation/destruction to IRMddimitri staessens2016-10-211-28/+9
| | | | | This stabilises flow allocation now that the rbuffs are created upon flow allocation. Only the IRMd can sync this process sufficiently.
* lib: Demultiplex the fast pathdimitri staessens2016-10-211-0/+424
The fast path will now use an incoming ring buffer per flow per process. This necessitated the development of a new method for the asynchronous io call, which is now based on an event queue system for scalability (fqueue). The ipcpd's and tools have been updated to this API.