pipeline: add header look-ahead instruction
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 27 Jul 2021 17:43:39 +0000 (18:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 27 Sep 2021 07:15:07 +0000 (09:15 +0200)
commit220d419b86286432bae0282c5da1d502ec750902
tree44442d9a5af29cf8ad08f892484f7662685a67ab
parent5972f82936752b3eaf625ef1ca3051b48b4e7a0f
pipeline: add header look-ahead instruction

Added look-ahead instruction to read a header from the input packet
without advancing the extraction pointer. This is typically used in
correlation with the special extract instruction to extract variable
size headers from the input packet: the first few header fields are
read without advancing the extraction pointer, just enough to detect
the actual length of the header (e.g. IPv4 IHL field); then the full
header is extracted.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/pipeline/rte_swx_pipeline.c