#xdp #linux #sockets #queue #rings #buffer #interaction

no-std xdpilone

Interaction with Linux XDP sockets and rings. No libbpf/libxpd-sys. Lightweight, high-performance.

3 stable releases

1.0.3 Feb 3, 2024
1.0.2 Feb 1, 2024
1.0.1 Jan 17, 2023
1.0.0 Jan 16, 2023

#198 in Unix APIs

Download history 338/week @ 2023-12-23 198/week @ 2023-12-30 425/week @ 2024-01-06 508/week @ 2024-01-13 492/week @ 2024-01-20 508/week @ 2024-01-27 719/week @ 2024-02-03 487/week @ 2024-02-10 480/week @ 2024-02-17 528/week @ 2024-02-24 474/week @ 2024-03-02 483/week @ 2024-03-09 362/week @ 2024-03-16 322/week @ 2024-03-23 370/week @ 2024-03-30 333/week @ 2024-04-06

1,453 downloads per month

EUPL-1.2

71KB
1K SLoC

The XDP Rust access library.

Motivation

For the Linux AF_XDP all existing libraries are based on or around the C access libraries. The goal is develop a Rust centric library that can take advantage of its added thread-safety benefits for socket types, as well as high-level abstractions (such as closures, Arc) for interacting with the packet buffers.

The primary metrics for decision making are performance, and latency.

Overview

Goals:

  • No more latency than the C implementation in the data paths.
  • Enable and simplify correct multi-threading on the same Umem.

Non-Goals:

  • Handling BPF / XSK_MAP. This is necessary to accept packets on any of the RX sockets created, however it can be setup at any point with no interaction with the actual queues. Hence we keep this large dependency tree separate. (You could choose a pure-Rust libbpf alternative if you want to).
  • Dealing with any aspects of buffer allocation.

Name Origin

The drug Ixabepilone is a pharmaceutical against cancer.

Dependencies

~190KB