From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 5B5B014EC for ; Mon, 16 Jan 2017 15:04:03 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id r126so160329913wmr.0 for ; Mon, 16 Jan 2017 06:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CGHnsVe9AETdiBeK3JtIQm/7nrzWWsGl1wRGkyaFCu4=; b=vQkwYXTQPHFDmm0gCMhThzpu9K1Wt64jMCxvxGTYs6ZuBdn2qNt5WHv5YoYpbbR6Y6 e7GbTEDrIb8u9II6BNBctY3xr3yq1anEYm5kGcKvogWOQAIqg0uj2sda2nbeNqT533Uz sKp3nkVz5TNuQlUwRbMUAwtWtgFTBt0MWL/PnHrtFta4Ys1cioO52NHb44lLQRC/URXD HkOUyxuTFgxL1KQ/DtTgo53FBplLv1vNJoMbNjW+ZzHuLToSvFnoZRHd504QbbK/GtpJ Gr2O2tAHzQifJjFpriK17JHoLrm6TXYfURoGuPmejdU+cPPiiuLtxj1NTKZQ+gaySWl3 kWSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CGHnsVe9AETdiBeK3JtIQm/7nrzWWsGl1wRGkyaFCu4=; b=QcqC+SlC6mCGn6xXyGjI6tb+IOa8z4Nb4DoNa/yhMWwt14K1EmrSUFmr3zA9lSuSnu OYgaNTUB8tsH9l6nSNtYIyQxM5gIK1i0gmz3H0O7sY/QR1lHfApdfIuNGSeg2d6edE4t R2AEh12nyqBEOV3AZMhCzaPrEHlgrh5+qaaiapO+QIqT5CTJqnAq5aMMeF66ZUKq/MZf TK9ZzeGNb47deCMGiy7i4fFWzSc5Fjl74lyeZssRRtieBlOtRYYAdM+2NyNqtQ7HzopY pLunDTbexlVe23muOw4R+D9S9gesRlMCpUtYhbeRp+C74BrbdSt7ez2yllkQFfZ6kc79 Zw0w== X-Gm-Message-State: AIkVDXKPl1U+GXlfeatufMQyX4bCrC2AXdSzWU101eIp9+a/1wu0mjjRyc7PiVjKsjQDVtIN X-Received: by 10.223.136.109 with SMTP id e42mr12516373wre.14.1484575443137; Mon, 16 Jan 2017 06:04:03 -0800 (PST) Received: from 6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id w79sm29040688wmw.0.2017.01.16.06.04.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jan 2017 06:04:01 -0800 (PST) Date: Mon, 16 Jan 2017 15:03:54 +0100 From: Adrien Mazarguil To: Olivier Matz Cc: dev@dpdk.org, Matthieu Ternisien d'Ouville , stable@dpdk.org, Samuel Gauthier Message-ID: <20170116140354.GE3779@6wind.com> References: <1484153073-18427-1-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1484153073-18427-1-git-send-email-olivier.matz@6wind.com> Subject: Re: [dpdk-dev] [PATCH] net/mlx: fix IPv4 and IPv6 packet type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 14:04:03 -0000 On Wed, Jan 11, 2017 at 05:44:33PM +0100, Olivier Matz wrote: > From: Matthieu Ternisien d'Ouville > > Mellanox PMDs do not differentiate IP header with or without options, so > the advertised packet type for an IPv4 should not be RTE_PTYPE_L3_IPV4, > which explicitly means "does not contain any header option". > > Change the driver to set > RTE_PTYPE(_INNER)_L3_IPV4_EXT_UNKNOWN or > RTE_PTYPE(_INNER)_L3_IPV6_EXT_UNKNOWN flags for all IPv4/IPv6 packets > received. > > Fixes: 429df3803a16 ("mlx4: replace some offload flags with packet type") > Fixes: 67fa62bc672d ("mlx5: support checksum offload") > > CC: stable@dpdk.org > Signed-off-by: Samuel Gauthier > Signed-off-by: Matthieu Ternisien d'Ouville > Signed-off-by: Olivier Matz > --- > drivers/net/mlx4/mlx4.c | 18 ++++++++++++------ > drivers/net/mlx5/mlx5_rxtx.c | 12 ++++++------ > 2 files changed, 18 insertions(+), 12 deletions(-) Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND