app/testpmd: fix max Rx packet length for VLAN packet
authorSteve Yang <stevex.yang@intel.com>
Mon, 2 Nov 2020 08:52:33 +0000 (08:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commitf6870a7ed6b3fde94fb936256515bfc53bdc5015
tree4ee1f59c3b6a292030445aaf2beb40daafb19f7a
parent445b0c8eba3bf0e07e9164b59b6de48eaa19d72f
app/testpmd: fix max Rx packet length for VLAN packet

When the max Rx packet length is smaller than the sum of MTU size and
ether overhead size, it should be enlarged, otherwise the VLAN packets
will be dropped.

Fixes: 35b2d13fd6fd ("net: add rte prefix to ether defines")
Cc: stable@dpdk.org
Signed-off-by: Steve Yang <stevex.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c