From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <luca.boccassi@gmail.com>
Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com
 [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 18E05FFA
 for <stable@dpdk.org>; Mon, 30 Apr 2018 16:44:10 +0200 (CEST)
Received: by mail-wr0-f195.google.com with SMTP id p18-v6so8294451wrm.1
 for <stable@dpdk.org>; Mon, 30 Apr 2018 07:44:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=3Hcz0Ie+Iji3q8KvBNGZxgJwrn0h6mD/iYmAkhdav+o=;
 b=Op3JBsenEyV5/sKi+pX0K/pnyzJ6zxFi9rL0Lv2GnE4KMkL0ah0cN38qdt8YrDewNF
 J9ZQaXb0W+lUxq6+TlgvhAwnoxMBeebY1fgleuyHKXPByXzt0OHSh6USZopvfFrGS/Xy
 TqQlwWT8ADcneu3kCi4co21ka7zsddI+Yn8+fsLMxMRgKJvjx71KBjeEh4BbFjle5tpf
 RP2723AGoD4ldiUDjHj05GRKqf6bPtK0ADGXAY0xLtLbQKZ1fqzlOZDO//jnXMXI8y6o
 kbeDcTurEb3SkrCDxGgQP1jyo7nnDMez+JQTDGLQ0h5r11Fqj5IHW7D8S7wxaajKx+tL
 ICMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=3Hcz0Ie+Iji3q8KvBNGZxgJwrn0h6mD/iYmAkhdav+o=;
 b=XLHyX3OHkijxb/4PiK2Oksg+ana1hLH1kee6O7xCbybaNdwwSlUVabvsTi57xbFcxd
 kj4qJwS9Q2qmLR0JDkmhpmvwQgZL66SUPUpSOETsGerlfptsd+OfKvvbYBOhAAY4BsZC
 o2Kx3CFmrQpbb212GtQqILOvlvSnEyZsV7/hYlc8gjiZ+SRph1Rs4umgasbzA+0LzwE7
 7FSdPsbHmzNzllBrNaAxneNJ47rE0ymjzgVUESJsk3ryZ4Ha+D88ivRVNpHymw5TTy4r
 fF53JCNsIPHrCznvlCtnTSKneav49Tk5G5qEsrjMfkC34HDn4nH1h8TApT+eBDuyTTQX
 xCqQ==
X-Gm-Message-State: ALQs6tCF4qx0IEhYNYoCjNCa0xt0xfw4VPKjE1sqxHPS7uSpqSqfRCRY
 iuTrH7uhNn3jesqpJU0LLgzZKExKsbQ=
X-Google-Smtp-Source: AB8JxZrr57DPA8MUlAPfdnytmT8nGIIld8HRrJQsOFi+qVLTsgm0qfDka1TTaqfaVncXk8uUreoTIw==
X-Received: by 2002:adf:c362:: with SMTP id
 e31-v6mr8676457wrg.257.1525099449793; 
 Mon, 30 Apr 2018 07:44:09 -0700 (PDT)
Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb])
 by smtp.gmail.com with ESMTPSA id m134sm9896694wmg.4.2018.04.30.07.44.08
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 30 Apr 2018 07:44:08 -0700 (PDT)
From: luca.boccassi@gmail.com
To: Thomas Monjalon <thomas@monjalon.net>
Cc: Olivier Matz <olivier.matz@6wind.com>,
	dpdk stable <stable@dpdk.org>
Date: Mon, 30 Apr 2018 15:41:20 +0100
Message-Id: <20180430144223.18657-65-luca.boccassi@gmail.com>
X-Mailer: git-send-email 2.14.2
In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com>
References: <20180430140606.4615-80-luca.boccassi@gmail.com>
 <20180430144223.18657-1-luca.boccassi@gmail.com>
Subject: [dpdk-stable] patch 'mbuf: improve tunnel Tx offloads API doc' has
	been queued to stable release 18.02.2
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2018 14:44:10 -0000

Hi,

FYI, your patch has been queued to stable release 18.02.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/02/18. So please
shout if anyone has objections.

Thanks.

Luca Boccassi

---
>>From c781568f3727aef981c2cc27ac1b1f8b3e9f3e4e Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas@monjalon.net>
Date: Fri, 20 Apr 2018 01:53:10 +0200
Subject: [PATCH] mbuf: improve tunnel Tx offloads API doc

[ upstream commit ab66fe0e4a1ca058c4e23efd475e48788c0977e7 ]

Add few details to remind TSO flag, checksum flags and header lengths.

The doxygen syntax for MPLS-in-UDP is fixed.

Fixes: d95188551fa1 ("mbuf: introduce new Tx offload flag for MPLS-in-UDP")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
---
 lib/librte_mbuf/rte_mbuf.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 9c319aeff..54a917ba8 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -201,14 +201,17 @@ extern "C" {
 
 /**
  * Bits 45:48 used for the tunnel type.
- * When doing Tx offload like TSO or checksum, the HW needs to configure the
- * tunnel type into the HW descriptors.
+ * The tunnel type must be specified for TSO or checksum on the inner part
+ * of tunnel packets.
+ * These flags can be used with PKT_TX_TCP_SEG for TSO, or PKT_TX_xxx_CKSUM.
+ * The mbuf fields for inner and outer header lengths are required:
+ * outer_l2_len, outer_l3_len, l2_len, l3_len, l4_len and tso_segsz for TSO.
  */
 #define PKT_TX_TUNNEL_VXLAN   (0x1ULL << 45)
 #define PKT_TX_TUNNEL_GRE     (0x2ULL << 45)
 #define PKT_TX_TUNNEL_IPIP    (0x3ULL << 45)
 #define PKT_TX_TUNNEL_GENEVE  (0x4ULL << 45)
-/**< TX packet with MPLS-in-UDP RFC 7510 header. */
+/** TX packet with MPLS-in-UDP RFC 7510 header. */
 #define PKT_TX_TUNNEL_MPLSINUDP (0x5ULL << 45)
 /* add new TX TUNNEL type here */
 #define PKT_TX_TUNNEL_MASK    (0xFULL << 45)
-- 
2.14.2