Rte_graph: Introduction To Feature Arc Abstraction
summary
Runtime hook points let protocols be added or removed per-interface (physical or virtual) and reuse in-built DPDK nodes without code duplication by inserting feature nodes between a start and end node. APIs: register feature arc (name, max index, start/end nodes), register feature (feature callback, placement), library init before graph create, then feature_enable/feature_disable at runtime with a two‑byte cookie passed via a dynamic mbuf field; optional RCU for safe teardown. Measured cost: init-only ~17% drop, one enabled feature ~5.2% extra (scales roughly linearly); limit 63 features per arc; feature nodes cannot be shared across arcs for performance.
AI-written summary · about
