#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

#142 in Unix APIs

Download history 1103/week @ 2024-08-17 1022/week @ 2024-08-24 749/week @ 2024-08-31 707/week @ 2024-09-07 762/week @ 2024-09-14 1362/week @ 2024-09-21 1112/week @ 2024-09-28 994/week @ 2024-10-05 914/week @ 2024-10-12 823/week @ 2024-10-19 813/week @ 2024-10-26 748/week @ 2024-11-02 594/week @ 2024-11-09 735/week @ 2024-11-16 811/week @ 2024-11-23 661/week @ 2024-11-30

2,901 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