From f3b6bfa61baeb94a304e6bc4cfe5b808e8d3605c Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net> Date: Mon, 4 Jan 2021 22:01:54 +0700 Subject: [PATCH] [+] Check if defined SO_INCOMING_CPU flag in the system --- CMakeLists.txt | 2 +- dap-sdk/net/core/dap_worker.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1b015182..c6c5be8e21 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ project(cellframe-sdk C) cmake_minimum_required(VERSION 2.8) set(CMAKE_C_STANDARD 11) -set(CELLFRAME_SDK_NATIVE_VERSION "2.6-97") +set(CELLFRAME_SDK_NATIVE_VERSION "2.6-98") add_definitions ("-DCELLFRAME_SDK_VERSION=\"${CELLFRAME_SDK_NATIVE_VERSION}\"") set(DAPSDK_MODULES "") diff --git a/dap-sdk/net/core/dap_worker.c b/dap-sdk/net/core/dap_worker.c index 7792a6e2f4..7a0a11bace 100644 --- a/dap-sdk/net/core/dap_worker.c +++ b/dap-sdk/net/core/dap_worker.c @@ -701,8 +701,10 @@ static void s_queue_add_es_callback( dap_events_socket_t * a_es, void * a_arg) case DESCRIPTOR_TYPE_SOCKET_LISTENING:{ #ifdef DAP_OS_UNIX +#if defined (SO_INCOMING_CPU) int l_cpu = l_worker->id; setsockopt(l_es_new->socket , SOL_SOCKET, SO_INCOMING_CPU, &l_cpu, sizeof(l_cpu)); +#endif #endif } break; default: {} -- GitLab