Commit eb4ccfbd authored by Tom Barbette's avatar Tom Barbette

Fix travis

Do not initialize DPDK pool if we don't use --dpdk-packet-pool. This would not be bad IRL because most people compiling with DPDK actually use DPDK, but on travis it fails
parent 39e0124a
Pipeline #1774 passed with stage
in 10 minutes
......@@ -35,7 +35,7 @@
#include <click/notifier.hh>
#include <click/nameinfo.hh>
#include <click/bighashmap_arena.hh>
#if HAVE_DPDK
#if HAVE_DPDK_PACKET_POOL
#include <click/dpdkdevice.hh>
#endif
#if HAVE_NETMAP_PACKET_POOL
......@@ -1172,7 +1172,7 @@ Router::initialize(ErrorHandler *errh)
}
}
#if HAVE_DPDK
#if HAVE_DPDK_PACKET_POOL
if (all_ok) {
//DPDK initialization may be affected by some configuration and needed by some element initialization (Packet::make with --enable-dpdk-pool)
all_ok = DPDKDevice::static_initialize(ErrorHandler::default_handler()) == 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment