| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| |
| | |
ipcpd: shim-udp changed to blocking write
|
|/
|
|
|
| |
The shim UDP did a non-blocking write call, causing loss of
SDU's. This has been changed to a blocking write call.
|
|\
| |
| |
| | |
tools: updated cbr with flood and sleep options
|
|/
|
|
|
|
|
| |
The cbr client will now use busy waiting by default to control the
sending rate. A --sleep option has been added to allow low CPU usage
when sending at low data rates. A --flood option has been added that
writes SDU's as fast as possible.
|
|\
| |
| |
| | |
ipcpd: fixed the shim-udp grinding the cpu
|
| |
| |
| |
| |
| |
| |
| |
| | |
In linux, the select call changes the timeout variable to the time not
spent in sleep, causing the timeout to decrease and that loop to grind
the cpu. The timeval is now reset to the correct value every loop.
Also removed a LOG_ERR message that was hampering performance.
|
|\ \
| |/
|/|
| | |
lib: fixed SHM_DU_BUFF_BLOCK_SIZE in shm_du_map
|
|/ |
|
|\
| |
| |
| | |
lib: fixed blocking/non-blocking write
|
|/
|
|
|
| |
non-blocking write would return when the buffer was full
functions in dev now check validity of input file descripters
|
|\
| |
| |
| | |
Be cbr
|
| |
| |
| |
| |
| | |
This adds a cleanup handler for the main message loop, which closes
the socket upon pthread_cancel so that the ipcp can exit cleanly.
|
| |
| |
| |
| |
| | |
This adds a threadpool to cbr, so that it is not overflooded with
client requests.
|
|\ \
| |/
|/|
| | |
lib: allow running shm_du_map in single block mode
|
| |
| |
| |
| |
| | |
this allows disabling support for SDU's that are larger than a block
in the DU MAP by defining the variable SHM_MAP_SINGLE_BLOCK
|
|\ \
| | |
| | |
| | | |
tools, lib: cbr tool for bandwidth testing
|
| | |
| | |
| | |
| | |
| | | |
the CBR tool would stop if the buffer is full. Now it will continue
sending SDU's until the duration expires.
|
| | |
| | |
| | |
| | | |
the structure is tv->tv_usec, not tv->tv_nsec
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
The tool sends constant bandwidth traffic between a client and a
server. cbr --help for more info.
Adds time_utils.h to the library containing useful functions for
arithmetic with timespec and timeval structures.
|
|\ \
| |/
|/|
| | |
lib: Fix memleaks in dev.c
|
|/
|
|
| |
Fixes some memleaks in dev.c in the case of error conditions.
|
|\
| |
| |
| | |
irmd: use the shm_du_map as a uniqueness check
|
|/
|
|
|
| |
This makes sure only one shm_du_map is running in the system.
Starting a second irmd would invalidate the shared memory map.
|
|\
| |
| |
| | |
irmd: Change read lock to write lock
|
| |
| |
| |
| |
| | |
A read lock was taken instead of a write lock, which resulted in
double frees.
|
|\ \
| |/
|/|
| | |
ipcpd: shim-udp: fixed missing NULL check
|
|/
|
|
| |
Conf was not checked on bootstrap.
|
|\
| |
| |
| | |
lib, ipcpd, irmd: fixes deallocation and fast path
|
|/
|
|
|
|
| |
The fast path has been rewritten to have certainty to read the correct
flow. Deallocation will not release port_id's or fd's until they are
explicitly released locally.
|
|\
| |
| |
| | |
ipcpd: Remove install command from build
|
|/
|
|
|
| |
This removes an install command from the build, since the protobuf
header file was being installed in the source directory.
|
|\
| |
| |
| | |
lib, irmd, ipcpd: Flow deallocation over shim UDP
|
| | |
|
| | |
|
|/
|
|
|
|
| |
The shim UDP now supports deallocating a flow end-to-end. Contains
some stability fixes for flow allocation and some missing close()
calls in lib/sockets.
|
|\
| |
| |
| | |
fixes segfaults in dev.c and in shim-udp
|
|/ |
|
|\
| |
| |
| | |
lib: allow parallel connections
|
|/
|
|
|
|
| |
dev.c: read now only reads an SDU if is is for the correct port_id
shm_ap_rbuff: added a function peek() that returns the port_id of the
tail.
|
|\
| |
| |
| | |
ipcpd: Full flow allocation for the shim UDP
|
| |
| |
| |
| |
| | |
There could be a theoretical race condition that the server sends a
message before the FD is set on the client side, which is resolved.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There were two race conditions. The first was where client received
the response message before the client UDP port was connected to the
server UDP port and the first message of the client was sent to the
LISTEN port instead of the server application port. This was solved by
reordering the operations so the response is sent after the port is
correctly connected. The second race condition is that the FD is not
added to the set in time at the server side before the first SDU
arrives. This was solved by adding a variable proteceted by a mutex.
|
| |
| |
| |
| |
| | |
some debug code for locking and a sleep check are removed from the
shim-udp.
|
|/
|
|
|
|
|
|
|
| |
It uses UDP port 0x0D1F on all hosts to send and receive flow
allocation messages. It supports communication between server and
client AP over a single shim IPCP.
Implementation of full flow deallocation is pending. Both the client
and the server still have to call flow_dealloc();
|
|\
| |
| |
| | |
lib: Add missing check upon garbage collection
|
| |\
| |/
|/| |
|
|\ \
| | |
| | |
| | | |
lib: Fixed incorrect comparison
|
| |/
| |
| |
| |
| |
| |
| | |
There was a check missing upon garbage collection. If the whole DU map
has been used once, all DUs will have their garbage bit set to
one. This meant that the garbage collector would keep moving the tail
indefinitely.
|
|/
|
|
|
| |
When moving the tail pointer in the DU map, blocks was never reset to
zero. This caused it to sometimes clean up too many DUs.
|