> -----Original Message-----
> From: Chas Williams [mailto:[email protected]]
> Sent: Tuesday, November 27, 2018 4:56 AM
> To: [email protected]
> Cc: Ananyev, Konstantin <[email protected]>; Chas Williams 
> <[email protected]>
> Subject: [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes
> 
> From: Chas Williams <[email protected]>
> 
> 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 <[email protected]>
> ---

Acked-by: Konstantin Ananyev <[email protected]>

> 2.14.4

Reply via email to