numam-dpdk/lib/librte_gso
Yi Yang b9b75d9b5c gso: fix payload unit size for UDP
Fragment offset of IPv4 header is measured in units of
8 bytes. Fragment offset of UDP fragments will be wrong
after GSO if pyld_unit_size isn't multiple of 8. Say
pyld_unit_size is 1500, fragment offset of the second
UDP fragment will be 187 (i.e. 1500 / 8), which means 1496,
and it will result in 4-byte data loss (1500 - 1496 = 4).
So UDP GRO will reassemble out a wrong packet.

Fixes: b166d4f30b ("gso: support UDP/IPv4 fragmentation")
Cc: stable@dpdk.org

Signed-off-by: Yi Yang <yangyi01@inspur.com>
Acked-by: Jiayu Hu <jiayu.hu@intel.com>
2020-09-18 18:55:12 +02:00
..
gso_common.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
gso_common.h net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
gso_tcp4.c net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
gso_tcp4.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
gso_tunnel_tcp4.c net: add rte prefix to TCP structure 2019-05-24 13:34:46 +02:00
gso_tunnel_tcp4.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
gso_udp4.c gso: fix payload unit size for UDP 2020-09-18 18:55:12 +02:00
gso_udp4.h gso: support UDP/IPv4 fragmentation 2018-07-11 23:45:20 +02:00
meson.build gso: support UDP/IPv4 fragmentation 2018-07-11 23:45:20 +02:00
rte_gso_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
rte_gso.c gso: support UDP/IPv4 fragmentation 2018-07-11 23:45:20 +02:00
rte_gso.h net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00