numam-dpdk/drivers/net/enetc
Steve Yang 4d44217b06 net/enetc: fix jumbo frame flag condition for MTU set
The jumbo frame uses the 'RTE_ETHER_MAX_LEN' as boundary condition.
If the Ether overhead is larger than 18 when it supports VLAN tag,
that will cause the jumbo flag rx offload is wrong when MTU size is
'RTE_ETHER_MTU'.

This fix will normalize the boundary condition with 'RTE_ETHER_MTU'
and overhead even though current overhead is 18.

Fixes: 5d5589b0c8 ("net/enetc: support MTU update and jumbo frames")
Cc: stable@dpdk.org

Signed-off-by: Steve Yang <stevex.yang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2021-01-19 03:30:15 +01:00
..
base net/enetc: init SI transactions attribute register 2020-03-18 10:21:41 +01:00
enetc_ethdev.c net/enetc: fix jumbo frame flag condition for MTU set 2021-01-19 03:30:15 +01:00
enetc_logs.h net/enetc: print MAC address logs at notice level 2019-10-23 16:43:10 +02:00
enetc_rxtx.c replace hot attributes 2020-04-16 18:30:58 +02:00
enetc.h net/enetc: fix jumbo frame flag condition for MTU set 2021-01-19 03:30:15 +01:00
meson.build build: align wording of non-support reasons 2020-11-20 16:05:35 +01:00
version.map build: remove library name from version map file name 2020-10-19 22:13:59 +02:00