summaryrefslogtreecommitdiffstats
path: root/src/kernel/net.h
Commit message (Collapse)AuthorAgeFilesLines
* [KERNEL] Refactor to use workqueues and blk-mq onlySimon Rettberg2022-02-181-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using workqueues frees us from having to manage the lifecycle of three dedicated threads. Discovery (alt server checks) and sending keepalive packets is now done using work on the power efficient system queue. Sending and receiving happens via dedicated work queues with higher priority. blk-mq has also been around for quite a while in the kernel, so switching to it doesn't hurt backwards compatibility. As the code is now refactored to work more as blk-mq is designed, backwards compatibility even improved while at the same time freeing us from an arsenal of macros that were required to make the blk-mq port look and feel like the old implementation. For example, the code now compiles on CentOS 7 with kernel 3.10 without requiring special macros to detect the heavily modified RedHat kernel with all its backported features. A few other design limitations have been rectified along the way, e.g. switching to another server now doesn't internally disconnect from the current one first, which theoretically could lead to a non-working setup, if the new server isn't reachable and then - because of some transient network error - switching back also fails. As the discover-thread was torn down from the disconnect call, the connection would also not repair itself eventually. we now establish the new connection in parallel to the old one, and only if that succeeds do we replace the old one with it, similar to how the automatic alt-server switch already does it.
* [KERNEL] Removes duplicate word 'of' in license headersManuel Bentele2021-04-161-1/+1
|
* [KERNEL] Deduplicate code, clean up, split into functionsSimon Rettberg2021-04-141-9/+0Star
|
* [KERNEL] Refactor code to satisfy Linux kernel code styleManuel Bentele2021-03-121-6/+8
|
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-1/+1
| | | | | | | | | | This change restructures the source code directories, separates shared form non-shared application code and adds CMake dependencies. These dependencies allow the tracking of changes and trigger a rebuild of those build targets where changed files are involved. WARNING: Note that the support of the DNBD3_SERVER_AFL build option is not supported yet. Thus, the option should be never turned on.
* [KERNEL] make private network functions staticManuel Bentele2020-08-281-8/+0Star
|
* [KERNEL] convert debug messages and clean up codeManuel Bentele2020-08-281-4/+0Star
| | | | | | | | | | | | This change converts all debug messages to support the Linux kernel's dynamic debug feature. Debug messages can be enabled or disabled by the debug feature if the - kernel module is built in debug mode (EXTRA_CFLAGS=-g -DDEBUG) - Linux kernel supports dynamic debug (CONFIG_DYNAMIC_DEBUG is set) This patch removes outdated kernel compatibility macros (used for Linux kernels in version 4.x) and cleans up the kernel module's code.
* [KERNEL] #ifs and #defines for timer pre/post 4.15Simon Rettberg2018-04-051-0/+4
|
* Follow https://lwn.net/Articles/735887/Rafael Gieschke2018-03-241-1/+1
|
* [*] Cleanup, comments, more error checkssr2012-08-241-6/+7
| | | | | | | | [SERVER] Fix a few off-by-one bugs [SERVER] Make log available through IPC [KERNEL] Hot-Swap to faster connection on load-balance [KERNEL] Report I/O error to block layer if no server replies within a given time frame [*] Modified network protocol to handle volume names instead of ids
* [ALL] Some cleanupJohann Latocha2012-05-211-1/+1
|
* [KERNEL] Set proper exit status on connectionJohann Latocha2012-05-081-1/+1
|
* [SERVER] Memleak fixedJohann Latocha2012-02-151-0/+2
| | | | [KERNEL] Socket swap fixed
* [SERVER] Config reload fixedJohann Latocha2012-02-101-0/+7
|
* [ALL] Some refactoringJohann Latocha2012-01-311-2/+2
|
* [SERVER] Timeout for client socketsJohann Latocha2012-01-301-0/+2
| | | | [KERNEL] Send keep alive
* [KERNEL] Change server at runtimeJohann Latocha2012-01-301-0/+2
| | | | [SERVER] Build error/warning on x64 fixed
* [KERNEL] Multi device supportJohann Latocha2012-01-251-1/+1
|
* First working version :)Johann Latocha2012-01-191-0/+32