pipeline: add table action for packet tag
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 9 Oct 2018 13:00:36 +0000 (14:00 +0100)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 12 Oct 2018 17:33:26 +0000 (19:33 +0200)
commita63e06d7068897171645043fbe8ee4c6264d9d3a
tree9f30cf49b9284908c330dcb4db41bc792215ad39
parentb53258c14c1588d08c67a023fe2c42884b31c060
pipeline: add table action for packet tag

This patch introduces the packet tag table action which attaches
a 32-bit value (the tag) to the current input packet. The tag is
read from the current table entry. The tag is written into the
mbuf->hash.fdir.hi and the flags PKT_RX_FDIR and PKT_RX_FDIR_ID
are set into mbuf->ol_flags.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_table_action.c
lib/librte_pipeline/rte_table_action.h