app/testpmd: fix MPLSoGRE encapsulation
authorDekel Peled <dekelp@mellanox.com>
Tue, 4 Dec 2018 13:52:02 +0000 (15:52 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Dec 2018 17:45:59 +0000 (17:45 +0000)
commitda4d923557050aa51b91a3731f3872cdfe43e283
tree5d8dede6a444063eef9eac2e9896a45dfb10d72c
parent0f79b515fef6d4a9243f59eea3f1f29a116a1f74
app/testpmd: fix MPLSoGRE encapsulation

In function cmd_set_mplsogre_encap_parsed(), MPLS label value was
set in mplsogre_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
mplsogre_encap_conf struct, so it is correctly copied to
rte_flow_item_mpls struct.

Fixes: 3e77031be855 ("app/testpmd: add MPLSoGRE 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