app/testpmd: revert max Rx packet length adjustment
authorThomas Monjalon <thomas@monjalon.net>
Thu, 5 Nov 2020 17:05:41 +0000 (18:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 5 Nov 2020 18:16:59 +0000 (19:16 +0100)
commit13e0b599acfd7ec7d92a48c827be03bdc491429b
tree0e8b01d9b3179c82c046502d9f409e0ef0968677
parent3a35c1c0f65e89aae4bdcb9366924df3b276dc4a
app/testpmd: revert max Rx packet length adjustment

The fix of max_rx_pkt_len for allowing VLAN packets in all cases
was breaking configuration of some drivers. Example with virtio:

Ethdev port_id=0 max_rx_pkt_len 11229 > max valid value 9728
Fail to configure port 0

Trying to fix the logic was revealing other issues in some drivers.
That's why it is decided to revert.

The workaround for the original issue would be
to set the MTU explicitly from the application
with rte_eth_dev_set_mtu().
See RFC: https://patches.dpdk.org/patch/83756/

Fixes: f6870a7ed6b3 ("app/testpmd: fix max Rx packet length for VLAN packet")
Cc: stable@dpdk.org
Reported-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Lance Richardson <lance.richardson@broadcom.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/testpmd.c