app/testpmd: fix metadata API and Tx insertion
authorDekel Peled <dekelp@mellanox.com>
Wed, 24 Oct 2018 06:21:59 +0000 (09:21 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Oct 2018 20:14:06 +0000 (22:14 +0200)
commit1e45c908fe65c78e8dcf32d47cb1b09092b21025
tree417932cc1e4567effaa72a883ce6c542db121256
parentb6aadd7436bfc1fb2af67aa266588fdd80ca8988
app/testpmd: fix metadata API and Tx insertion

Previous patch introduces the Tx metadata feature, with unnecessary
restrictions on data entry.
It also used the metadata in txonly fwd engine only.

This fix removes the data entry restrictions on metadata item.
It also implements callback function to add the metadata in every
Tx packet, sent by any fwd engine.

Fixes: c18feafa193c ("app/testpmd: support metadata as flow rule item")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
app/test-pmd/cmdline.c
app/test-pmd/cmdline_flow.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c
app/test-pmd/util.c