Flexible Parsing in Flow API
summary
DPDK 21.11 exposes a flex item API (implemented today only by mlx5 PMD) that registers custom parsers into hardware and returns a handle used as a flow item type or in modify_field actions. It defines four concrete building blocks: header length (fixed or field-derived), sampled fields (bit offsets/sizes), next-proto extraction, and input/output links to connect into existing parsers. Combined with the template API’s relaxed matching, it lets rules split tunnel/inner matching, drastically shorten rule length for million‑scale inner tables, and works on mlx5 today.
AI-written summary · about
