pub struct PortConfig {
pub name: String,
pub device: String,
pub args: Option<String>,
pub cores: Vec<CoreId>,
pub rxd: usize,
pub txd: usize,
pub promiscuous: bool,
pub multicast: bool,
pub kni: bool,
}Expand description
Port configuration settings.
Fields§
§name: StringThe application assigned logical name of the port.
For applications with more than one port, this name can be used to identifer the port.
device: StringThe device name of the port. It can be the following formats,
- PCIe address, for example
0000:02:00.0 - DPDK virtual device, for example
net_[pcap0|null0|tap0]
args: Option<String>Additional arguments to configure a virtual device.
cores: Vec<CoreId>The cores assigned to the port for running the pipelines. The values can overlap with the runtime cores.
rxd: usizeThe receive queue capacity. Defaults to 128.
txd: usizeThe transmit queue capacity. Defaults to 128.
promiscuous: boolWhether promiscuous mode is enabled for this port. Defaults to false.
multicast: boolWhether multicast packet reception is enabled for this port. Defaults
to true.
kni: boolWhether kernel NIC interface is enabled for this port. with KNI, this
port can exchange packets with the kernel networking stack. Defaults
to false.
Trait Implementations§
Source§impl Clone for PortConfig
impl Clone for PortConfig
Source§impl Debug for PortConfig
impl Debug for PortConfig
Source§impl<'de> Deserialize<'de> for PortConfig
impl<'de> Deserialize<'de> for PortConfig
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>,
Auto Trait Implementations§
impl Freeze for PortConfig
impl RefUnwindSafe for PortConfig
impl Send for PortConfig
impl Sync for PortConfig
impl Unpin for PortConfig
impl UnsafeUnpin for PortConfig
impl UnwindSafe for PortConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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> ⓘ
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