diff options
author | Dimitri Staessens <[email protected]> | 2018-10-03 01:13:43 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-10-03 09:14:57 +0200 |
commit | e00181b492d573ecd0621f55d9ad24f134c09d4c (patch) | |
tree | f7c1b1f1df892bd3766060419d34cd1363a6eedd /src/ipcpd/eth/CMakeLists.txt | |
parent | ee73b781c1e13daee67e149f1828d7166e5ea627 (diff) | |
download | ouroboros-e00181b492d573ecd0621f55d9ad24f134c09d4c.tar.gz ouroboros-e00181b492d573ecd0621f55d9ad24f134c09d4c.zip |
ipcpd: Add multithreading to Ethernet IPCP
This adds multiple reader and writer threads, configurabe via cmake
with IPCP_ETH_RD_THR and IPCP_ETH_WR_THR. Improves ethernet IPCP
throughput, which looks to be limited by the raw socket calls.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/eth/CMakeLists.txt')
-rw-r--r-- | src/ipcpd/eth/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/eth/CMakeLists.txt b/src/ipcpd/eth/CMakeLists.txt index 6b8d1a77..7bad6ac0 100644 --- a/src/ipcpd/eth/CMakeLists.txt +++ b/src/ipcpd/eth/CMakeLists.txt @@ -77,6 +77,11 @@ endif () if (HAVE_ETH) message(STATUS "Supported raw packet API found, building eth-llc and eth-dix") + set(IPCP_ETH_RD_THR 3 CACHE STRING + "Number of reader threads in Ethernet IPCP") + set(IPCP_ETH_WR_THR 3 CACHE STRING + "Number of writer threads in Ethernet IPCP") + set(ETH_LLC_SOURCES # Add source files here ${CMAKE_CURRENT_SOURCE_DIR}/llc.c |