DPDK Graph Library Design and Implementation Details -
summary
DPDK’s graph library (lib/graph introduced in v20.05) models packet processing as nodes with 16-byte fast-path context, registers nodes by name and regex, and wires graphs via graph_create and graph_work APIs; it supports out‑of‑tree nodes, multi‑process and two walk models (run‑to‑completion and multi‑core dispatch), exports dot graphs, aggregates per‑node stats across cores, and implements a zero-cost stream move for most packet handoffs; an L3‑forward graph using built‑in nodes shows about 5% higher throughput than the traditional l3fwd.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker background
- 1:06Graph architecture overview
- 3:57DPDK Graph Library features
- 8:34Programming model and APIs
- 16:32Node registration and data movement
- 25:03Graph creation and execution
- 29:57Statistics and performance metrics
- 30:57Graph walk models
- 34:21Graph internals and memory layout
- 35:26Inbuilt nodes and status
- 37:14Q&A session
