numam-dpdk/drivers/net/enic
Hyong Youb Kim c09eb93529 net/enic: fix max MTU calculation
The maximum packet length (max_pkt_len) from the firmware does not
include CRC, so do not subtract 4 when deriving the max MTU. This
change effectively increases the max MTU by 4B. Apps often assume max
MTU = max_rx_pkt_len - 14 (ethernet header), and attempt to set the
MTU to that value (i.e. set MTU to max HW value). This change
incidentally allows such apps to change MTU to max value successfully.

Fixes: bb34ffb848 ("net/enic: determine max egress packet size and max MTU")
Cc: stable@dpdk.org

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
2019-03-20 18:15:42 +01:00
..
base net/enic: remove unused functions 2019-03-08 17:52:22 +01:00
enic_clsf.c net/enic: fix flow director SCTP matching 2019-03-08 17:52:22 +01:00
enic_compat.h net/enic: add the simple version of Tx handler 2018-07-03 01:54:23 +02:00
enic_ethdev.c net/enic: remove redundant log level check 2019-01-14 17:44:30 +01:00
enic_flow.c net/enic: fix inner packet matching 2019-03-08 17:52:22 +01:00
enic_main.c net/enic: reset VXLAN port regardless of overlay offload 2019-03-08 17:52:22 +01:00
enic_res.c net/enic: fix max MTU calculation 2019-03-20 18:15:42 +01:00
enic_res.h net/enic: remove unused functions 2019-03-08 17:52:22 +01:00
enic_rxtx_common.h net/enic: allow flow mark ID 0 2019-03-08 17:52:22 +01:00
enic_rxtx_vec_avx2.c net/enic: add AVX2 based vectorized Rx handler 2018-10-11 18:53:49 +02:00
enic_rxtx.c net/enic: fix size check in Tx prepare handler 2018-11-14 00:35:53 +01:00
enic.h net/enic: fix max MTU calculation 2019-03-20 18:15:42 +01:00
Makefile net/enic: remove unused functions 2019-03-08 17:52:22 +01:00
meson.build net/enic: remove unused functions 2019-03-08 17:52:22 +01:00
rte_pmd_enic_version.map