[PATCH] build: Set default number of threads in eth to 1

  • From: Dimitri Staessens <dimitri@ouroboros.rocks>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Tue, 5 Mar 2019 09:02:57 +0100

This makes the eth packet handler single-threaded by default, at least
until stability issues that seem to be related to multi-threading are
fixed.

Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
---
 src/ipcpd/eth/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ipcpd/eth/CMakeLists.txt b/src/ipcpd/eth/CMakeLists.txt
index e4acdb7..abffbb2 100644
--- a/src/ipcpd/eth/CMakeLists.txt
+++ b/src/ipcpd/eth/CMakeLists.txt
@@ -78,9 +78,9 @@ 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
+  set(IPCP_ETH_RD_THR 1 CACHE STRING
     "Number of reader threads in Ethernet IPCP")
-  set(IPCP_ETH_WR_THR 3 CACHE STRING
+  set(IPCP_ETH_WR_THR 1 CACHE STRING
     "Number of writer threads in Ethernet IPCP")
   set(IPCP_ETH_QDISC_BYPASS false CACHE BOOL
     "Bypass the Qdisc in the kernel when using raw sockets")
-- 
2.20.1


Other related posts:

  • » [PATCH] build: Set default number of threads in eth to 1 - Dimitri Staessens