numam-dpdk/lib/librte_ip_frag
Chas Williams 7a838c8798 ip_frag: fix IPv6 when MTU sizes not aligned to 8 bytes
The same issue was fixed on for the ipv4 version of this routine in
commit 8d4d3a4f73 ("ip_frag: handle MTU sizes not aligned to 8 bytes").
Briefly, the size of an ipv6 header is always 40 bytes.  With an MTU of
1500, this will never produce a multiple of 8 bytes for the frag_size
and this routine can never succeed. Since RTE_ASSERTS are disabled by
default, this failure is typically ignored.

To fix this, round down to the nearest 8 bytes and use this when
producing the fragments.

Fixes: 0aa31d7a59 ("ip_frag: add IPv6 fragmentation support")
Cc: stable@dpdk.org

Signed-off-by: Chas Williams <chas3@att.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2018-12-19 22:40:08 +01:00
..
ip_frag_common.h ip_frag: use key length for key comparison 2018-11-06 01:58:11 +01:00
ip_frag_internal.c ip_frag: add function to delete expired entries 2018-09-19 19:45:38 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_ip_frag_common.c ip_frag: add function to delete expired entries 2018-09-19 19:45:38 +02:00
rte_ip_frag_version.map fix indentation in symbol maps 2018-11-26 20:16:46 +01:00
rte_ip_frag.h ip_frag: fix IPv6 when MTU sizes not aligned to 8 bytes 2018-12-19 22:40:08 +01:00
rte_ipv4_fragmentation.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_ipv4_reassembly.c ip_frag: check fragment length of incoming packet 2018-11-06 01:58:03 +01:00
rte_ipv6_fragmentation.c ip_frag: fix IPv6 when MTU sizes not aligned to 8 bytes 2018-12-19 22:40:08 +01:00
rte_ipv6_reassembly.c ip_frag: check fragment length of incoming packet 2018-11-06 01:58:03 +01:00