Files
scylladb/net/native-stack.hh
Gleb Natapov 73f6d943e1 net: separate device initialization from queues initialization
This patch adds new class distributed_device which is responsible for
initializing HW device and it is shared between all cpus. Old device
class responsibility becomes managing rx/tx queue pair and it is local
per cpu. Each cpu have to call distributed_device::init_local_queue() to
create its own device. The logic to distribute cpus between available
queues (in case there is no enough queues for each cpu) is in the
distributed_device currently and not really implemented yet, so only one
queue or queues == cpus scenarios are supported currently, but this can
be fixed later.

The plan is to rename "distributed_device" to "device" and "device"
to "queue_pair" in later patches.
2014-12-09 18:55:14 +02:00

18 lines
305 B
C++

/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef STACK_HH_
#define STACK_HH_
#include "net/net.hh"
#include <boost/program_options.hpp>
namespace net {
void create_native_stack(boost::program_options::variables_map opts, std::shared_ptr<distributed_device> dev);
}
#endif /* STACK_HH_ */