From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BEC7BA04B5; Tue, 12 Jan 2021 12:43:15 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38A6D140E17; Tue, 12 Jan 2021 12:43:15 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D5A60140DEB for ; Tue, 12 Jan 2021 12:43:13 +0100 (CET) IronPort-SDR: nOhePzZHSzFxJ2SsbR2DS/t1mlyXW5iH/HWFPNSfe3bZ349lGdyktywiq42tq/caYK6Tcpv8ba kjjNuevR9G7A== X-IronPort-AV: E=McAfee;i="6000,8403,9861"; a="178173228" X-IronPort-AV: E=Sophos;i="5.79,341,1602572400"; d="scan'208";a="178173228" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2021 03:43:11 -0800 IronPort-SDR: Qu4Mo2dpzt3wCpb6hqBM25eQ6KThx6mLKvV60q4LbQEZkSdJeVaRkHEvcaBxICo0TJJyhhUtL2 uQn5Y5Ckvwcw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,341,1602572400"; d="scan'208";a="363472704" Received: from dpdk51.sh.intel.com ([10.67.111.142]) by orsmga002.jf.intel.com with ESMTP; 12 Jan 2021 03:43:10 -0800 From: Qi Zhang To: thomas@monjalon.net Cc: dev@dpdk.org, ferruh.yigit@intel.com, Qi Zhang Date: Tue, 12 Jan 2021 19:47:03 +0800 Message-Id: <20210112114703.350878-1-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ethdev: refine API description X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Refine the description for rte_eth_dev_udp_tunnel_port_add. Claim this is an API for device (or port) level configuration. Signed-off-by: Qi Zhang --- lib/librte_ethdev/rte_ethdev.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h index f5f891918..a7bb16d45 100644 --- a/lib/librte_ethdev/rte_ethdev.h +++ b/lib/librte_ethdev/rte_ethdev.h @@ -4030,6 +4030,16 @@ rte_eth_dev_rss_hash_conf_get(uint16_t port_id, * to change or add more UDP port for the tunnel. So the offloading function * can take effect on the packets with the specific UDP port. * + * Due to different requirements from different use cases, NICs may have a + * different way to identify a UDP port as a tunnel type. Some NIC takes this + * as a device (or port) level configure while some NIC takes this as a flow + * based configure. + * + * This API is for the first case and typically it will only be implemented + * on a PF driver or a VF driver which have privilege right to configure for + * other VFs. For the second case, a tunnel configure could be embedded in a + * rte_flow rule. + * * @param port_id * The port identifier of the Ethernet device. * @param tunnel_udp -- 2.26.2