app/testpmd: fix protocol size for copy
authorXiaoyu Min <jackmin@nvidia.com>
Tue, 3 Nov 2020 13:20:22 +0000 (21:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:08 +0000 (23:35 +0100)
commit3e34ec3d4e73e17896e1b832f13930eeac42e574
tree330faaaa6d700a0c0f6e0520ef6234b24beabbd4
parent64ed71d59a3ee98f0d2498d0fbdd9edd78662b89
app/testpmd: fix protocol size for copy

The rte_flow_item_eth and rte_flow_item_vlan items are refined.
The structs do not exactly represent the packet bits captured on the
wire anymore so set raw_encap/decap commands should only copy real
header instead of the whole struct.

Replace the rte_flow_item_* with the existing corresponding rte_*_hdr.

Fixes: 09315fc83861 ("ethdev: add VLAN attributes to ethernet and VLAN items")

Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c