aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/netliba
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-07-18 14:04:56 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-07-18 14:04:56 +0300
commite6faf2d02c5150afa1653e6232678b23b68fe534 (patch)
tree1c4c68662b38947880e788869399acd1a202d106 /library/cpp/netliba
parent8c8a4c1d7d49f7f55e2d3b30f638b53b7c890273 (diff)
downloadydb-e6faf2d02c5150afa1653e6232678b23b68fe534.tar.gz
Allow using ibdrv interface in opensource apps
Diffstat (limited to 'library/cpp/netliba')
-rw-r--r--library/cpp/netliba/v6/ib_low.cpp2
-rw-r--r--library/cpp/netliba/v6/ib_low.h4
-rw-r--r--library/cpp/netliba/v6/ya.make6
3 files changed, 4 insertions, 8 deletions
diff --git a/library/cpp/netliba/v6/ib_low.cpp b/library/cpp/netliba/v6/ib_low.cpp
index 455a5f3512..4dff3ac5cd 100644
--- a/library/cpp/netliba/v6/ib_low.cpp
+++ b/library/cpp/netliba/v6/ib_low.cpp
@@ -8,7 +8,7 @@ namespace NNetliba {
EnableROCEFlag = f;
}
-#if defined _linux_ && !defined CATBOOST_OPENSOURCE
+#if defined(_linux_)
static TMutex IBPortMutex;
static TIntrusivePtr<TIBPort> IBPort;
static bool IBWasInitialized;
diff --git a/library/cpp/netliba/v6/ib_low.h b/library/cpp/netliba/v6/ib_low.h
index 04f4a08d3c..e3afd9df2e 100644
--- a/library/cpp/netliba/v6/ib_low.h
+++ b/library/cpp/netliba/v6/ib_low.h
@@ -2,7 +2,7 @@
#include "udp_address.h"
-#if defined(_linux_) && !defined(CATBOOST_OPENSOURCE)
+#if defined(_linux_)
#include <contrib/libs/ibdrv/include/infiniband/verbs.h>
#include <contrib/libs/ibdrv/include/rdma/rdma_cma.h>
#endif
@@ -22,7 +22,7 @@ namespace NNetliba {
const size_t MAX_INLINE_DATA_SIZE = 16;
const int MAX_OUTSTANDING_RDMA = 10;
-#if defined(_linux_) && !defined(CATBOOST_OPENSOURCE)
+#if defined(_linux_)
class TIBContext: public TThrRefBase, TNonCopyable {
ibv_context* Context;
ibv_pd* ProtDomain;
diff --git a/library/cpp/netliba/v6/ya.make b/library/cpp/netliba/v6/ya.make
index bb9982356c..9ec600263a 100644
--- a/library/cpp/netliba/v6/ya.make
+++ b/library/cpp/netliba/v6/ya.make
@@ -23,16 +23,12 @@ SRCS(
ib_memstream.cpp
)
-IF (OS_LINUX AND NOT CATBOOST_OPENSOURCE)
+IF (OS_LINUX)
PEERDIR(
contrib/libs/ibdrv
)
ENDIF()
-IF (CATBOOST_OPENSOURCE)
- CFLAGS(-DCATBOOST_OPENSOURCE=yes)
-ENDIF()
-
PEERDIR(
library/cpp/binsaver
library/cpp/netliba/socket