app/testpmd: fix MPLSoUDP encapsulation
authorDekel Peled <dekelp@mellanox.com>
Tue, 4 Dec 2018 13:51:33 +0000 (15:51 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Dec 2018 17:45:59 +0000 (17:45 +0000)
commit0f79b515fef6d4a9243f59eea3f1f29a116a1f74
treef9cd311957a3057d531324513bed0562fc0919ca
parentb4b896fcfe9bc9f079698442697aa8e1d4a6dc3f
app/testpmd: fix MPLSoUDP encapsulation

In function cmd_set_mplsoudp_encap_parsed(), MPLS label value was
set in mplsoudp_encap_conf struct without the required offset.
As a result the value was copied incorrectly into
rte_flow_item_mpls struct.

This patch sets MPLS label value in appropriate location at
mplsoudp_encap_conf struct, so it is correctly copied to
rte_flow_item_mpls struct.

Fixes: a1191d39cb57 ("app/testpmd: add MPLSoUDP encapsulation")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
app/test-pmd/cmdline.c