Struct mlx_ethernet::work_queue::WorkQueueEntrySend
source · #[repr(C)]pub struct WorkQueueEntrySend { /* private fields */ }
Expand description
WQEs are built from multiple segments. In the case of Send WQEs, there are three:
- control segment
- eth segment
- memory pointer data segment
Implementations§
source§impl WorkQueueEntrySend
impl WorkQueueEntrySend
sourcepub fn send(
&mut self,
wqe_index: u32,
sqn: u32,
lkey: u32,
local_address: PhysicalAddress,
packet: &[u8]
)
pub fn send( &mut self, wqe_index: u32, sqn: u32, lkey: u32, local_address: PhysicalAddress, packet: &[u8] )
Fill the control, ethernet and data segments of the WQE to send packets.
Arguments
wqe_index
: WQEBB number of the first block of this WQE // TODO? seems to be wqe_countersqn
: number of the SQ this WQE is posted tolkey
: the lkey used by the SQlocal_address
: physical address of the packet bufferpacket
: packet buffer
Trait Implementations§
source§impl Default for WorkQueueEntrySend
impl Default for WorkQueueEntrySend
source§fn default() -> WorkQueueEntrySend
fn default() -> WorkQueueEntrySend
Returns the “default value” for a type. Read more
impl FromBytes for WorkQueueEntrySend
Auto Trait Implementations§
impl RefUnwindSafe for WorkQueueEntrySend
impl Send for WorkQueueEntrySend
impl Sync for WorkQueueEntrySend
impl Unpin for WorkQueueEntrySend
impl UnwindSafe for WorkQueueEntrySend
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