Files
scylladb/net/dpdk.hh
Vlad Zolotarov ddf239a943 dpdk: Move the scattered DPDK EAL initialization into the dpdk::eal.
- Move the smp::dpdk_eal_init() code into the dpdk::eal::init() where it belongs.
 - Removed the unused "opts" parameter of dpdk::dpdk_device constructor - all its usage
   has been moved to dpdk::eal::init().
 - Cleanup in reactor.cc: #if HAVE_DPDK -> #ifdef HAVE_DPDK; since we give a -DHAVE_DPDK
   option to a compiler.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
2014-12-22 17:36:49 +02:00

23 lines
497 B
C++

/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifdef HAVE_DPDK
#ifndef _SEASTAR_DPDK_DEV_H
#define _SEASTAR_DPDK_DEV_H
#include <memory>
#include "net.hh"
#include "core/sstring.hh"
std::unique_ptr<net::device> create_dpdk_net_device(
uint8_t port_idx = 0,
uint8_t num_queues = 1);
boost::program_options::options_description get_dpdk_net_options_description();
#endif // _SEASTAR_DPDK_DEV_H
#endif // HAVE_DPDK