app/testpmd: fix MPLS IPv4 encapsulation fields
authorSaleh Alsouqi <salehals@mellanox.com>
Thu, 4 Jul 2019 07:33:22 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commita97ec9ba45d4357c172df71be3fcf601dfdb8147
tree52fee3f427bbb8620335cfd9e99b1d90fa0bda07
parent2318d8d5456532e8022d324937a77a416b701d2b
app/testpmd: fix MPLS IPv4 encapsulation fields

Having version and ihl set to 0 would result in a
corrupted/incorrect encapsulating packet for MPLS,
this commit sets these fields to 4 and 5 respectively
as defined in librte_net/rte_ip.h.

Fixes: 3e77031be855 ("app/testpmd: add MPLSoGRE encapsulation")
Fixes: a1191d39cb57 ("app/testpmd: add MPLSoUDP encapsulation")
Cc: stable@dpdk.org
Signed-off-by: Saleh Alsouqi <salehals@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c