summaryrefslogtreecommitdiffstats
path: root/src/msg/async/dpdk
diff options
context:
space:
mode:
authoramitkuma <amitkuma@redhat.com>2017-10-05 15:47:18 +0200
committeramitkuma <amitkuma@redhat.com>2017-11-20 13:57:49 +0100
commit0748d7c805899043828b5573a3dc81c0f1a6d465 (patch)
tree0a6c062986342f00adaf2d63556f71c090abc566 /src/msg/async/dpdk
parentMerge pull request #18980 from shinobu-x/os_filestore_filestore_nit_cleanup (diff)
downloadceph-0748d7c805899043828b5573a3dc81c0f1a6d465.tar.xz
ceph-0748d7c805899043828b5573a3dc81c0f1a6d465.zip
cleanup: Replacing MIN,MAX with std::min,std::max
Signed-off-by: Amit Kumar <amitkuma@redhat.com>
Diffstat (limited to 'src/msg/async/dpdk')
-rw-r--r--src/msg/async/dpdk/DPDKStack.h2
-rw-r--r--src/msg/async/dpdk/Packet.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/msg/async/dpdk/DPDKStack.h b/src/msg/async/dpdk/DPDKStack.h
index af5a5fd2400..73759128fde 100644
--- a/src/msg/async/dpdk/DPDKStack.h
+++ b/src/msg/async/dpdk/DPDKStack.h
@@ -147,7 +147,7 @@ class NativeConnectedSocketImpl : public ConnectedSocketImpl {
// space for next ptr.
if (len > 0)
break;
- seglen = MIN(seglen, available);
+ seglen = std::min(seglen, available);
}
len += seglen;
frags.push_back(fragment{(char*)pb->c_str(), seglen});
diff --git a/src/msg/async/dpdk/Packet.h b/src/msg/async/dpdk/Packet.h
index b8134573fa3..000329b4cfd 100644
--- a/src/msg/async/dpdk/Packet.h
+++ b/src/msg/async/dpdk/Packet.h
@@ -125,7 +125,7 @@ class Packet {
pseudo_vector fragments() { return { frags, _nr_frags }; }
static std::unique_ptr<impl> allocate(size_t nr_frags) {
- nr_frags = MAX(nr_frags, default_nr_frags);
+ nr_frags = std::max(nr_frags, default_nr_frags);
return std::unique_ptr<impl>(new (nr_frags) impl(nr_frags));
}