fn build_xsk(
    umem_config: UmemConfig,
    socket_config: SocketConfig,
    ifname: &str,
    queue: u32,
    tx_batch_size: usize,
) -> Xsk2 {
    let n_tx_frames = umem_config.frame_count() / 2;
    let xsk = Xsk2::new(
        ifname,
        queue,
        umem_config,
        socket_config,
        n_tx_frames as usize,
        tx_batch_size,
    )
    .expect("failed to build xsk");
    xsk
}
/// Build an Xsk for a given queue
Build an Xsk for a given queue
Build an Xsk for a given queue
fn build_xsk(
    umem_config: UmemConfig,
    socket_config: SocketConfig,
    ifname: &str,
    queue: u32,
    tx_batch_size: usize,
) -> Xsk2 {
    let n_tx_frames = umem_config.frame_count() / 2;
    let xsk = Xsk2::new(
        ifname,
        queue,
        umem_config,
        socket_config,
        n_tx_frames as usize,
        tx_batch_size,
    )
    .expect("failed to build xsk");
    xsk
}
fn build_xsk ( umem_config : UmemConfig , socket_config : SocketConfig , ifname : & str , queue : u32 , tx_batch_size : usize , ) -> Xsk2 { let n_tx_frames = umem_config . frame_count ( ) / 2 ; let xsk = Xsk2 :: new ( ifname , queue , umem_config , socket_config , n_tx_frames as usize , tx_batch_size , ) . expect ( " " ) ; xsk }
Build an Xsk for a given queue
Build an Xsk for a given queue
umem_config
UmemConfig
socket_config
SocketConfig
ifname
&str
queue
u32
tx_batch_size
usize
umem_config
UmemConfig
socket_config
SocketConfig
ifname
&str
queue
u32
tx_batch_size
usize