docs.rs failed to build afxdp-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
afxdp-0.4.0
AFXDP-rs
This module provides a Rust interface for AF_XDP built on libbpf-sys (https://github.com/alexforster/libbpf-sys).
AF_XDP:
The goals of this crate, in order, are:
- Correctness
- Performance
- Ease of use
Current Status
The API works for my current use cases but I expect it will change to achieve higher performance and usability.
If you have knowledge of Rust FFI and general Rust unsafe things I would greatly appreciate some help auditing this crate as my experience in this area is limited.
AF_XDP Features
- HUGE TLB: At present this module always uses HUGETLB to map the memory.
- ZEROCOPY: At present this module always passes the ZEROCOPY flag which only works with a small number of drivers.
- Only the chunked memory mode is supported.
To Do
- Currently this module is not 'safe' because Bufs can outlive the memory pool they are associated with. I believe fixing this will require adding an Arc to each Buf. I have not had the time yet to determine the performance impact of this and would appreciate any other ideas.
- Allow more configurability of AF XDP features.