#xdp #linux #sockets #queue #packet #rings #buffer

no-std xdpilone

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

6 stable releases

1.1.0 Sep 23, 2024
1.0.5 Aug 19, 2024
1.0.4 Jun 6, 2024
1.0.3 Feb 3, 2024
1.0.1 Jan 17, 2023

#149 in Unix APIs

Download history 842/week @ 2024-07-30 686/week @ 2024-08-06 820/week @ 2024-08-13 1207/week @ 2024-08-20 866/week @ 2024-08-27 832/week @ 2024-09-03 654/week @ 2024-09-10 822/week @ 2024-09-17 1442/week @ 2024-09-24 1055/week @ 2024-10-01 958/week @ 2024-10-08 900/week @ 2024-10-15 824/week @ 2024-10-22 778/week @ 2024-10-29 630/week @ 2024-11-05 654/week @ 2024-11-12

3,030 downloads per month

EUPL-1.2

74KB
1.5K 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