[dpdk-dev] [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes

Ananyev, Konstantin konstantin.ananyev at intel.com
Wed Dec 19 11:12:25 CET 2018



> -----Original Message-----
> From: Chas Williams [mailto:3chas3 at gmail.com]
> Sent: Tuesday, November 27, 2018 4:56 AM
> To: dev at dpdk.org
> Cc: Ananyev, Konstantin <konstantin.ananyev at intel.com>; Chas Williams <chas3 at att.com>
> Subject: [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes
> 
> From: Chas Williams <chas3 at att.com>
> 
> The same issue was fixed on for the ipv4 version of this routine in
> commit 8d4d3a4f7337 ("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 tpyically ignored.
> 
> To fix this, round down to the nearest 8 bytes and use this when
> producing the fragments.
> 
> Fixes: 0aa31d7a5929 ("ip_frag: add IPv6 fragmentation support")
> 
> Signed-off-by: Chas Williams <chas3 at att.com>
> ---

Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

> 2.14.4



More information about the dev mailing list