Skip to content

Commit

Permalink
issue-2869: remove libnl
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Mar 10, 2025
1 parent fcd85bf commit 47159af
Show file tree
Hide file tree
Showing 305 changed files with 20 additions and 96,281 deletions.
3 changes: 1 addition & 2 deletions cloud/blockstore/libs/daemon/common/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,7 @@ void TBootstrapBase::Init()
Logging,
Configs->ServerConfig->GetNbdRequestTimeout(),
Configs->ServerConfig->GetNbdConnectionTimeout(),
true, // reconfigure
false // without libnl
true // reconfigure
);
}

Expand Down
1 change: 0 additions & 1 deletion cloud/blockstore/libs/endpoint_proxy/server/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ void TBootstrap::Init()
Options.StoredEndpointsPath,
Options.NbdRequestTimeout,
Options.NbdReconnectDelay,
Options.WithoutLibnl,
},
CreateWallClockTimer(),
Scheduler,
Expand Down
1 change: 1 addition & 0 deletions cloud/blockstore/libs/endpoint_proxy/server/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ TOptions::TOptions()
NbdReconnectDelay = TDuration::Parse(s);
});

// deprecated
Opts.AddLongOption("without-libnl")
.NoArgument()
.SetFlag(&WithoutLibnl);
Expand Down
3 changes: 1 addition & 2 deletions cloud/blockstore/libs/endpoint_proxy/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,7 @@ struct TServer: IEndpointProxyServer
ep.NbdDevicePath,
Config.NbdRequestTimeout,
NBD_CONNECTION_TIMEOUT,
NBD_RECONFIGURE_CONNECTED,
Config.WithoutLibnl);
NBD_RECONFIGURE_CONNECTED);
} else {
// The only case we want kernel to retry requests is when the socket
// is dead due to nbd server restart. And since we can't configure
Expand Down
5 changes: 1 addition & 4 deletions cloud/blockstore/libs/endpoint_proxy/server/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ struct TEndpointProxyServerConfig
TString StoredEndpointsPath;
TDuration NbdRequestTimeout;
TDuration NbdReconnectDelay;
bool WithoutLibnl;

TEndpointProxyServerConfig(
ui16 port,
Expand All @@ -41,8 +40,7 @@ struct TEndpointProxyServerConfig
bool netlink,
TString storedEndpointsPath,
TDuration nbdRequestTimeout,
TDuration nbdReconnectDelay,
bool withoutLibnl)
TDuration nbdReconnectDelay)
: Port(port)
, SecurePort(securePort)
, RootCertsFile(std::move(rootCertsFile))
Expand All @@ -53,7 +51,6 @@ struct TEndpointProxyServerConfig
, StoredEndpointsPath(std::move(storedEndpointsPath))
, NbdRequestTimeout(nbdRequestTimeout)
, NbdReconnectDelay(nbdReconnectDelay)
, WithoutLibnl(withoutLibnl)
{
}
};
Expand Down
Loading

0 comments on commit 47159af

Please sign in to comment.