From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by dpdk.org (Postfix) with ESMTP id 2B5B337B3 for ; Tue, 18 Oct 2016 08:01:19 +0200 (CEST) Received: by mail-yw0-f180.google.com with SMTP id u124so131114236ywg.3 for ; Mon, 17 Oct 2016 23:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2whNtD20dszmXMKj0Sl5VnOVhC8BFaTYPxlYk4Fu4u4=; b=SE2ufMG617p/t5Mw4L9XTsgfnjRL26/tbjtPaIHXQz5NTYkN4+1RaI8Zc3aEgkRFng 8cCrJFmLGgZeWwyj/1icnT8pBGi7HvRlxh2yKag7hWtGlVHy94p73aLt+0adOUNuXqyS 075bpRiiJ4ovS79TBzhKv/Tnu2THgwKpxw5dmU8iPvEWWbqpaQnkiFrNVVSfVX9yKR+B PtBFIK/K4WsIPFwfAzPGMsTHZNCVoz6J3hyB44b+SoNTqwYob04FBVSTKlHsaRaYGd3w CiNMfkjZ0+c4jNnVySbBvnDvqUK1+EXIe34yT+xBnpK6XR6GHFj2vfL5rQnDoxJFZmt0 S9tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=2whNtD20dszmXMKj0Sl5VnOVhC8BFaTYPxlYk4Fu4u4=; b=ilKV6WoXacBHXUIfMePzOeyrOuRupMPoVpksxjfuETTWxLHNASPfCm6IHQqQ6NAdx5 Vc/x2YLbqfZfOANParMOdHXGHuWnnAHWyPVEorxpF3vZJWA0YMu53WnOojB7s72WTLQl y0KoljiT7cg5zBBrHOZQF3uTCrxiKidhXp4xZt7+eOddOCHEIesZvQ9lEeCG+JMGBhVQ wQtC+1lMkw7epECJa2FNbAy5Yfw25DpO81zCboME+yK6Ce/uhk0MUoY6m7uHq/zCBMzy F7y6VXUl9rLWOuSsy0EOs2fhp7O0tXBjmp2aS3q5qvtB9cwIVNG25TY5oCT1BZ4J/Sy+ qRxA== X-Gm-Message-State: AA6/9Rm+S2CdOym7QQIFsmvez1lMAQZUP8a6E92MolwR+VpxnNAM+WzWHFjIsA4ZHig3P6HDmWtWGgHrM3gayYxD X-Received: by 10.13.214.12 with SMTP id y12mr1220775ywd.152.1476770478511; Mon, 17 Oct 2016 23:01:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.105.194 with HTTP; Mon, 17 Oct 2016 23:00:48 -0700 (PDT) In-Reply-To: <1476769747-23289-1-git-send-email-qiudayu@chinac.com> References: <1476769747-23289-1-git-send-email-qiudayu@chinac.com> From: Christian Ehrhardt Date: Tue, 18 Oct 2016 08:00:48 +0200 Message-ID: To: stable@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-stable] Fwd: [dpdk-dev] [PATCH 1/2] examples/tep_term: Fix l4_len issue X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 06:01:19 -0000 CC Stable ---------- Forwarded message ---------- From: Michael Qiu Date: Tue, Oct 18, 2016 at 7:49 AM Subject: [dpdk-dev] [PATCH 1/2] examples/tep_term: Fix l4_len issue To: dev@dpdk.org Cc: jianfeng.tan@intel.com, Michael Qiu l4_len is not fixed, althrough mostly it is a fixed value, but when guest using iperf to do some tests, the l4_len will have another 12 bytes optional fields. Fixes: 2bb43bd4350a("examples/tep_term: add TSO offload configuration") Signed-off-by: Michael Qiu --- examples/tep_termination/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tep_termination/vxlan.c b/examples/tep_termination/ vxlan.c index 5ee1f95..b57f867 100644 --- a/examples/tep_termination/vxlan.c +++ b/examples/tep_termination/vxlan.c @@ -147,7 +147,7 @@ process_inner_cksums(struct ether_hdr *eth_hdr, union tunnel_offload_info *info) if (tso_segsz != 0) { ol_flags |= PKT_TX_TCP_SEG; info->tso_segsz = tso_segsz; - info->l4_len = sizeof(struct tcp_hdr); + info->l4_len = (tcp_hdr->data_off & 0xf0) >> 2; } } else if (l4_proto == IPPROTO_SCTP) { -- 1.8.3.1 -- Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd