pub struct QueuePair {
pub rx: RxQueue,
pub tx: TxQueue,
}Expand description
Queue pair combining RX and TX queues
This is a common pattern for per-core packet processing
Fields§
§rx: RxQueue§tx: TxQueueImplementations§
Source§impl QueuePair
impl QueuePair
Sourcepub fn new(
port_id: u16,
queue_id: u16,
rx_config: RxQueueConfig,
tx_config: TxQueueConfig,
) -> DpdkResult<Self>
pub fn new( port_id: u16, queue_id: u16, rx_config: RxQueueConfig, tx_config: TxQueueConfig, ) -> DpdkResult<Self>
Create a new queue pair
Sourcepub fn echo(&self, max_burst: u16) -> DpdkResult<u16>
pub fn echo(&self, max_burst: u16) -> DpdkResult<u16>
Echo packets back (common test pattern)
Receives packets and immediately sends them back out
Auto Trait Implementations§
impl Freeze for QueuePair
impl RefUnwindSafe for QueuePair
impl Send for QueuePair
impl Sync for QueuePair
impl Unpin for QueuePair
impl UnsafeUnpin for QueuePair
impl UnwindSafe for QueuePair
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