pub struct RuntimeConfig {
pub main_core: u32,
pub nb_memory_channels: usize,
pub suppress_dpdk_output: bool,
pub mempool: MempoolConfig,
pub online: Option<OnlineConfig>,
pub offline: Option<OfflineConfig>,
pub conntrack: ConnTrackConfig,
/* private fields */
}Expand description
Runtime configuration options.
Fields§
§main_core: u32Main core identifier. Initializes and manages packet processing cores and logging, but does not process packets itself.
nb_memory_channels: usizeSets the number of memory channels to use.
This controls the spread layout used by the memory allocator and is mainly for performance
optimization. Can be configured up to be the number of channels per CPU socket if the
platform supports multiple memory channels. Defaults to 1.
suppress_dpdk_output: boolSuppress DPDK runtime logging and telemetry output. Defaults to true.
mempool: MempoolConfigPer-mempool settings.
online: Option<OnlineConfig>Online mode settings. Either online or offline must be specified.
offline: Option<OfflineConfig>Offline mode settings. Either online or offline must be specified.
conntrack: ConnTrackConfigConnection tracking settings.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn get_all_core_ids(&self) -> Vec<CoreId>
pub fn get_all_core_ids(&self) -> Vec<CoreId>
Returns a list of core IDs assigned to the runtime.
pub fn get_all_rx_core_ids(&self) -> Vec<CoreId>
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more