net/e1000: fix max Rx packet size
authorAlvin Zhang <alvinx.zhang@intel.com>
Thu, 8 Apr 2021 07:41:02 +0000 (15:41 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 13 Apr 2021 05:27:57 +0000 (07:27 +0200)
commitddbc8c16a97fd6662ecccf7e8431a9a3c7f43366
treecf35c8247ee9e87e7baf660c4273fb91fa915ce9
parentb0e539f2607230230b98a92b6c0f9dee4f4dac5a
net/e1000: fix max Rx packet size

According to E1000_ETH_OVERHEAD definition, max_rx_pkt_len contains
one VLAN tag size. Therefore when config RLPML register, if dual VLAN
not enabled there is no need to add VLAN tag size to max_rx_pkt_len,
otherwise only one another VLAN tag size should be added to.

Fixes: e51abef39382 ("igb: fix max RX packet size and support dual VLAN")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Tested-by: Lingli Chen <linglix.chen@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/e1000/igb_ethdev.c
drivers/net/e1000/igb_rxtx.c