when ./do_cmake.sh add -DWITH_DPDK=ON -DUSE_CRYPTOPP=ON -DWITH_NSS=OFF -DWITH_TESTS=OFF
if build debian package, need remove some file froms install since we disabled TESTS.
Signed-off-by: chunmei <chunmei.liu@intel.com>
if(HAVE_RDMA)
list(APPEND ceph_common_deps ${RDMA_LIBRARY})
endif()
+if(HAVE_DPDK)
+ list(APPEND ceph_common_deps ${DPDK_LIBRARIES})
+endif()
if(NOT WITH_SYSTEM_BOOST)
list(APPEND ceph_common_deps ${ZLIB_LIBRARIES})
endif()
#include "common/dout.h"
#include "include/assert.h"
+#include "common/Cond.h"
#define dout_subsys ceph_subsys_dpdk
#undef dout_prefix
uint32_t key[16];
isn_secret () {
for (auto& k : key) {
- k = ceph::util::generate_random_number<uint32_t>();
+ k = ceph::util::generate_random_number<uint32_t>(0, std::numeric_limits<uint32_t>::max());
}
}
};