mbox

[v6,0/2] fix default max mtu size when device configured

Message ID 20201022084851.35134-1-stevex.yang@intel.com (mailing list archive)
Headers

Message

Steve Yang Oct. 22, 2020, 8:48 a.m. UTC
  For testpmd, increase the max rx packet length when size of mtu and overhead
exceeds max_rx_pkt_len.

For generic ethdev, readuce the mtu size to ensure the rx frame size is
larger than size of mtu and overhead.

v6:
 * change the max_rx_pkt_len in the init_config of testpmd;
 * change the mtu value in the rte_ethdev;
v5:
 * update comments and commit messages;
v4:
 * add the adjust condition for max_rx_pkt_len;
v3:
 * change the i40evf relative code;
v2:
 * change the max_rx_pkt_len via mtu_set ops;

SteveX Yang (2):
  app/testpmd: fix max rx packet length for VLAN packets
  librte_ethdev: fix MTU size exceeds max rx packet length

 app/test-pmd/testpmd.c         | 52 +++++++++++++++++++++++++---------
 lib/librte_ethdev/rte_ethdev.c | 14 +++++++++
 2 files changed, 52 insertions(+), 14 deletions(-)