Skip to main content

run_uring

Function run_uring 

Source
pub fn run_uring<D: Dispatch>(
    udp_fd: RawFd,
    tun_fd: RawFd,
    d: &mut D,
) -> Result<()>
Expand description

Run the io_uring loop forever for production use.

The tun_fd here is always a plain device (yipd only opts into IFF_VNET_HDR/GSO offload for the poll driver — see bin/yipd/src/ tunnel.rs), so every PollDriver fallback below passes vnet_hdr = false.