Seastar
High performance C++ framework for concurrent servers
|
Native stack configuration.
#include <seastar/net/native-stack.hh>
Public Types | |
using | value_list_type = boost::intrusive::list< basic_value, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
using | option_group_list_type = boost::intrusive::list< option_group, boost::intrusive::base_hook< list_base_hook >, boost::intrusive::constant_time_size< false > > |
Public Member Functions | |
operator bool () const | |
Does the option group has any values contained in it? | |
bool | used () const |
const std::string & | name () const |
const value_list_type & | values () const |
value_list_type & | values () |
void | describe (options_descriptor &descriptor) const |
void | mutate (options_mutator &mutator) |
Public Attributes | |
program_options::value< std::string > | net_config |
program_options::value< std::string > | net_config_file |
program_options::value< std::string > | tap_device |
Tap device to connect to. More... | |
program_options::value< std::string > | host_ipv4_addr |
Static IPv4 address to use. More... | |
program_options::value< std::string > | gw_ipv4_addr |
Static IPv4 gateway to use. More... | |
program_options::value< std::string > | netmask_ipv4_addr |
Static IPv4 netmask to use. More... | |
program_options::value< int > | udpv4_queue_size |
Default size of the UDPv4 per-channel packet queue. More... | |
program_options::value< bool > | dhcp |
Use DHCP discovery. More... | |
program_options::value< float > | hw_queue_weight |
Weighing of a hardware network queue relative to a software queue. More... | |
program_options::value | dpdk_pmd |
Use DPDK PMD drivers. More... | |
program_options::value< std::string > | lro |
Enable LRO (on/off). More... | |
virtio_options | virtio_opts |
Virtio configuration. | |
dpdk_options | dpdk_opts |
|
inherited |
Describe the content of this option group to the visitor.
The content is visited in a depth-first manner:
false
the entire content of the group, including all its subgroups and values are skipped and options_descriptor::visit_group_end() is called immediately. Otherwise visiting the content of the group proceeds.false
the value is skipped, otherwise visiting the value proceeds.
|
inherited |
Mutate the content of this option group by the visitor.
The visiting algorithm is identical to that of describe(), with the following differences:
true
if it did so and false
otherwise.program_options::value<bool> seastar::net::native_stack_options::dhcp |
Use DHCP discovery.
Default: true
.
dpdk_options seastar::net::native_stack_options::dpdk_opts |
DPDK configuration.
program_options::value seastar::net::native_stack_options::dpdk_pmd |
Use DPDK PMD drivers.
program_options::value<std::string> seastar::net::native_stack_options::gw_ipv4_addr |
Static IPv4 gateway to use.
Default: 192.168.122.1
.
program_options::value<std::string> seastar::net::native_stack_options::host_ipv4_addr |
Static IPv4 address to use.
Default: 192.168.122.2
.
program_options::value<float> seastar::net::native_stack_options::hw_queue_weight |
Weighing of a hardware network queue relative to a software queue.
Values:
Default: 1.0.
program_options::value<std::string> seastar::net::native_stack_options::lro |
Enable LRO (on/off).
Default: on
.
program_options::value<std::string> seastar::net::native_stack_options::netmask_ipv4_addr |
Static IPv4 netmask to use.
Default: 255.255.255.0
.
program_options::value<std::string> seastar::net::native_stack_options::tap_device |
Tap device to connect to.
Default: tap0
.
program_options::value<int> seastar::net::native_stack_options::udpv4_queue_size |
Default size of the UDPv4 per-channel packet queue.
Default: ipv4_udp::default_queue_size.