pipeline: add new functions for action handlers
authorJasvinder Singh <jasvinder.singh@intel.com>
Tue, 8 Mar 2016 18:07:49 +0000 (18:07 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Mar 2016 00:29:42 +0000 (01:29 +0100)
commit4c387fcdf7776d3bb9f47789580a57bd18d4dbf3
tree912d8dae2454c1121688d0d900622f66e14bbad9
parent88ac2fd99fa06419c5b95ad662dc1e618bd8ac49
pipeline: add new functions for action handlers

Two new pipeline API functions have been added to the library. The packet
hijack API function can be called by any input/output port or table action
handler to remove selected packets from the burst of packets read from one
of the pipeline input ports and then either send these packets out through
any pipeline output port or drop them.

Another packet drop API function can be used by the pipeline action
handlers (port in/out, table) to drop the packets selected using packet
mask. This function updates the drop statistics counters correctly.

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
app/test/test_table_pipeline.c
examples/ip_pipeline/pipeline/pipeline_actions_common.h
lib/librte_pipeline/rte_pipeline.c
lib/librte_pipeline/rte_pipeline.h
lib/librte_pipeline/rte_pipeline_version.map