]> git.droids-corp.org - dpdk.git/commit
pipeline: rework optimization pattern for header generation
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Thu, 16 Jun 2022 14:16:45 +0000 (15:16 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jun 2022 14:14:50 +0000 (16:14 +0200)
commita1b2afe431d80ab65b2ed9889a61ead335e53299
tree7a12ea15cbf3ea88779c6916afb6c9212ea116ce
parentce1511f4b8f305eddd8d928ae0ddd6e335407230
pipeline: rework optimization pattern for header generation

The P4 language requires marking a header as valid before any of the
header fields are written as opposed to after the writes are done.
Hence, the optimization of replacing the sequence of instructions to
generate a header by reading it from the table action data with a
single DMA internal instruction are reworked from "mov all + validate
-> dma" to "validate + mov all -> dma".

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/pipeline/examples/fib.spec
examples/pipeline/examples/vxlan.spec
lib/pipeline/rte_swx_pipeline.c
lib/pipeline/rte_swx_pipeline_internal.h