pub struct FillRing { /* private fields */ }Expand description
The ring used to enqueue buffers for the kernel to fill in with packets received from a NIC
Implementations§
Source§impl FillRing
impl FillRing
Sourcepub unsafe fn enqueue(&mut self, umem: &mut Umem, num_packets: usize) -> usize
pub unsafe fn enqueue(&mut self, umem: &mut Umem, num_packets: usize) -> usize
Enqueues up to num_packets to be received and filled by the kernel
§Safety
The Umem must outlive the AF_XDP socket
§Returns
The number of packets that were actually enqueued. This number can be
lower than the requested num_packets if the Umem didn’t have enough
open slots, or the rx ring had insufficient capacity
Auto Trait Implementations§
impl Freeze for FillRing
impl RefUnwindSafe for FillRing
impl Send for FillRing
impl Sync for FillRing
impl Unpin for FillRing
impl !UnwindSafe for FillRing
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