aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-01-19 01:29:33 +0100
committerMauro Sardara <msardara@cisco.com>2019-01-21 12:03:48 +0100
commit9e5f41ed6ebe64a789916794626485460078c420 (patch)
treed2ac3090026ec8929558e88eca533f8787a6ff0b /utils
parentd13d37534d9449dd54277af664310d5f957dc44a (diff)
- Code style fix
- Improved vpp binary api interface - Correction in object pool destructor - Fix error in Memif Connector Change-Id: Id1dd9219fc1ac0b3717ae019ebff17373bebc635 Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/src/hiperf.cc4
-rwxr-xr-xutils/src/ping_client.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/src/hiperf.cc b/utils/src/hiperf.cc
index d8953b36a..221a8746b 100755
--- a/utils/src/hiperf.cc
+++ b/utils/src/hiperf.cc
@@ -229,7 +229,7 @@ class HIperfClient {
}
if (consumer_socket_->setSocketOption(OtherOptions::VIRTUAL_DOWNLOAD,
- false) == SOCKET_OPTION_NOT_SET) {
+ configuration_.virtual_download) == SOCKET_OPTION_NOT_SET) {
return ERROR_SETUP;
}
@@ -376,7 +376,7 @@ class HIperfServer {
total = producer_socket_->produce(
name, reinterpret_cast<const uint8_t *>(content.data()), content.size(),
- !configuration_.multiphase_produce_);
+ !configuration_.multiphase_produce_, suffix);
std::cout << "Written " << total << "pieces of data in output buffer"
<< std::endl;
diff --git a/utils/src/ping_client.cc b/utils/src/ping_client.cc
index 178bd8bac..c3bfa4086 100755
--- a/utils/src/ping_client.cc
+++ b/utils/src/ping_client.cc
@@ -403,7 +403,7 @@ int main(int argc, char *argv[]) {
}
}
- Client *ping = new Client(c);
+ auto ping = std::make_unique<Client>(c);
auto t0 = std::chrono::steady_clock::now();
ping->ping();