From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 90360A0A02;
	Fri, 15 Jan 2021 03:49:48 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 7974D140EC3;
	Fri, 15 Jan 2021 03:49:48 +0100 (CET)
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by mails.dpdk.org (Postfix) with ESMTP id 7366A140EC1
 for <dev@dpdk.org>; Fri, 15 Jan 2021 03:49:47 +0100 (CET)
IronPort-SDR: jA5qivxHMsQGAO/hHQ1qJl9aWGxPyfxGNUaZipOQEQ9oJU3WFhpC86Xm6BRKcs0UEYhpHYSUD8
 KsS2ze2sQ3hQ==
X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="158260662"
X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="158260662"
Received: from orsmga001.jf.intel.com ([10.7.209.18])
 by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 14 Jan 2021 18:49:46 -0800
IronPort-SDR: FhLOCf5P8TRCo31vd8FYdS3nWLRBwoDWIia57Cr6yZW4r31DQmFfNO2S5DEZ96bEZgNV3Uuc2i
 PX8V6gGcx3Vw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="425147686"
Received: from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128])
 by orsmga001.jf.intel.com with ESMTP; 14 Jan 2021 18:49:36 -0800
From: Jeff Guo <jia.guo@intel.com>
To: qi.z.zhang@intel.com, thomas@monjalon.net, ferruh.yigit@intel.com,
 andrew.rybchenko@oktetlabs.ru, bernard.iremonger@intel.com,
 wenzhuo.lu@intel.com, beilei.xing@intel.com
Cc: jingjing.wu@intel.com, qiming.yang@intel.com, haiyue.wang@intel.com,
 dev@dpdk.org, jia.guo@intel.com, simei.su@intel.com, orika@nvidia.com,
 getelson@nvidia.com, maxime.coquelin@redhat.com, jerinj@marvell.com,
 ajit.khaparde@broadcom.com, bingz@nvidia.com, ray.kinsella@intel.com,
 dodji@redhat.com, david.marchand@redhat.com
Date: Fri, 15 Jan 2021 10:42:39 +0800
Message-Id: <20210115024240.97254-2-jia.guo@intel.com>
X-Mailer: git-send-email 2.20.1
In-Reply-To: <20210115024240.97254-1-jia.guo@intel.com>
References: <20201216085854.7842-1-jia.guo@intel.com>
 <20210115024240.97254-1-jia.guo@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [dpdk-dev v3 1/2] ethdev: add new tunnel type for ecpri
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Add type of RTE_TUNNEL_TYPE_ECPRI into the enum of ethdev tunnel type.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 doc/guides/rel_notes/release_21_02.rst | 3 ++-
 lib/librte_ethdev/rte_ethdev.h         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/guides/rel_notes/release_21_02.rst b/doc/guides/rel_notes/release_21_02.rst
index b1bb2d8679..e5168d1312 100644
--- a/doc/guides/rel_notes/release_21_02.rst
+++ b/doc/guides/rel_notes/release_21_02.rst
@@ -110,7 +110,8 @@ ABI Changes
    Also, make sure to start the actual text at the margin.
    =======================================================
 
-* No ABI change that would break compatibility with 20.11.
+* ethdev: the structure ``rte_eth_tunnel_type`` has added one parameter
+  ``RTE_TUNNEL_TYPE_ECPRI`` for ecpri UDP port configuration.
 
 
 Known Issues
diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index f5f8919186..2cbce958cf 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -1219,6 +1219,7 @@ enum rte_eth_tunnel_type {
 	RTE_TUNNEL_TYPE_IP_IN_GRE,
 	RTE_L2_TUNNEL_TYPE_E_TAG,
 	RTE_TUNNEL_TYPE_VXLAN_GPE,
+	RTE_TUNNEL_TYPE_ECPRI,
 	RTE_TUNNEL_TYPE_MAX,
 };
 
-- 
2.20.1