af-xdp

Solid

Use when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.

AI & Automation 52 stars 9 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 83/100

Stars 20%
57
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# AF_XDP sockets ## Contract | Field | Bound contract | |---|---| | Trigger | Building a userspace packet path on AF_XDP: UMEM and ring setup, an XDP redirect program, the RX loop, copy versus zero-copy mode, or an AF_XDP versus DPDK decision. | | Authority | Read-only. Writes nothing. Chat output only. No remote mutation. | | Side effect | Returns setup code, ring lifecycle rules, and a mode recommendation. No source files are modified. | | Done | The socket setup code, the fill-ring refill rule, the redirect program, and a mode choice tied to driver support are delivered. | ## Inputs 1. Interface and queue (required): the interface name and the RX queue the socket serves. One socket per queue. 2. Mode intent (optional): copy or zero-copy. Default to copy and confirm from the bind. 3. Build setup (optional): libbpf installed (`pkg-config --libs libbpf` returns `-lbpf`; `-lxdp` when libxdp is installed separately). ## Procedure 1. Lay out the object model before writing code. UMEM is the shared frame pool. The fill ring carries empty frame addresses from user space to the kernel. The completion ring returns transmitted frames. The RX ring delivers received packets. The TX ring carries outgoing packets. Done when: each ring and the UMEM has a named struct in the design. 2. Create the UMEM and the socket. ```c #include <bpf/xsk.h> #define NUM_FRAMES 4096 #define FRAME_SIZE XSK_UMEM__DEFAULT_FRAME_SIZE #define RX_BATCH_SIZE 64 /* mmap one anonymo...

Details

Author
OutlineDriven
Repository
OutlineDriven/outline-driven-development
Created
9 months ago
Last Updated
5 days ago
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

arinc664-afdx

Use when sizing an AFDX network, writing a virtual link configuration table, or reviewing a network design against bandwidth, jitter, and latency budgets for certification. Size and validate ARINC 664 Part 7 Avionics Full-Duplex Switched Ethernet (AFDX) network configurations for civil avionics: compute virtual link bandwidth from the BAG and the maximum frame size, check that the virtual link set fits the 100 Mbps link, bound frame transmission time, verify jitter against the tolerance, estimate end-to-end latency through the switched network, and select the largest legal BAG that still delivers a required bandwidth. Trigger: AFDX, ARINC 664, virtual link, BAG, jitter, end system, avionics network, switched ethernet.

0 Updated today
ashfordeOU
API & Backend Listed

x-router

Route a vague setup, review-pack, project, product, engineering, org, risk, learning, memory-refresh, or handoff request to the right x-* skill. Use when the user asks which x-skill to use or gives a broad situation needing install check, full pack, purpose, thinking, engineering, teams, urgency, manufacturing, company-building, future, risk, multiplanetary, reading, compounding, memory pruning, or handoff. Do not use when the user already named a specific x-* skill—open that skill directly.

0 Updated 1 months ago
thepraggyverse
AI & Automation Listed

cdx

Run OpenAI Codex and Google Antigravity work, review, consult, question, and peer-message lanes through cdx. Use when spawning, resuming, forking, sending, asking, replying, messaging, adopting, reviewing, consulting, monitoring, reporting, closing, or cleaning lanes from Claude Code.

0 Updated today
RedesignedRobot