From patchwork Fri Jan 30 13:16:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 2833 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C33EF5A98; Fri, 30 Jan 2015 14:17:36 +0100 (CET) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 7B70D5A98 for ; Fri, 30 Jan 2015 14:16:44 +0100 (CET) Received: by mail-wi0-f180.google.com with SMTP id h11so2608120wiw.1 for ; Fri, 30 Jan 2015 05:16:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rzd+tZRzLI5Sh0ngq0jW4BAHgFIwU3ArIcu77Pi/uNA=; b=HQySDc3HU5lfIl8O6uaKXlFD9Hy2cJvH5xzodSMaMf9gz2XboL/grsnXVsGkfaKT2b EG/ADo5/zyg8m7eF+xxxxKf7bBA/Zx3NJWbLBK0CFZnkNBhxU8vZjSSgJyvQTctCLUvw BDayF/6ybom5W7ZQJqDCJqBXF5BA3R1oHczhEuE0U0oVItE35U5vTzJom/MlQYuN9fVY PsU8EB/vXOadsZ7gPCwLp3rpJdzhewgknqKPDAz+VV9WRQXIq7mDVZXeLgmJtS0gvJSc wosPJXucMAD4ACBxC4JT67xdSiEOzmAghr15LUPGIerz3Mch/Y34fs0hcd4VYZOnR9Gz B+5A== X-Gm-Message-State: ALoCoQnvDTEvgbX+rTiPPp7ksNkv7IFm9uAt7T2XdILRzgfCqjQdGHjV5UHsmw+tFW73AExlI6q3 X-Received: by 10.194.60.19 with SMTP id d19mr11759918wjr.48.1422623804391; Fri, 30 Jan 2015 05:16:44 -0800 (PST) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id li7sm6911300wic.4.2015.01.30.05.16.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Jan 2015 05:16:43 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 30 Jan 2015 14:16:13 +0100 Message-Id: <1422623775-8050-19-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> References: <1421883395-27235-1-git-send-email-olivier.matz@6wind.com> <1422623775-8050-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 18/20] testpmd: fix TSO when using outer checksum offloads X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The l4_len has also to be copied in mbuf in case we are offloading outer IP checksum. Currently, TSO + outer checksum is not supported by any driver but it will soon be supported by i40e. Pointed-out-by: Jijiang Liu Signed-off-by: Olivier Matz --- app/test-pmd/csumonly.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 407e3b3..56dd2f3 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -585,6 +585,7 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) m->outer_l3_len = info.outer_l3_len; m->l2_len = info.l2_len; m->l3_len = info.l3_len; + m->l4_len = info.l4_len; } else { /* if there is a outer UDP cksum