From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ip_frag: fix ipv6 when MTU sizes not aligned to 8 bytes Date: Wed, 19 Dec 2018 04:47:55 +0100 Message-ID: <73581454.Bm8E9NaT8G@xps> References: <20181127045613.16437-1-3chas3@gmail.com> <1543400103.5087.14.camel@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Luca Boccassi , Chas Williams <3chas3@gmail.com>, Chas Williams To: konstantin.ananyev@intel.com Return-path: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by dpdk.org (Postfix) with ESMTP id 5BCBA1B589 for ; Wed, 19 Dec 2018 04:47:59 +0100 (CET) In-Reply-To: <1543400103.5087.14.camel@debian.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 28/11/2018 11:15, Luca Boccassi: > On Mon, 2018-11-26 at 23:56 -0500, Chas Williams wrote: > > From: Chas Williams > > > > 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 > > --- > > lib/librte_ip_frag/rte_ip_frag.h | 1 + > > lib/librte_ip_frag/rte_ipv6_fragmentation.c | 18 +++++++++++------- > > 2 files changed, 12 insertions(+), 7 deletions(-) > > Acked-by: Luca Boccassi Konstantin, no comment?