From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v8 1/5] lib/librte_ether: change function name of tunnel port config Date: Wed, 09 Mar 2016 10:48:55 +0100 Message-ID: <1593514.bEiGrs9mO2@xps13> References: <1452496044-17524-1-git-send-email-wenzhuo.lu@intel.com> <1457494514-5862-1-git-send-email-wenzhuo.lu@intel.com> <1457494514-5862-2-git-send-email-wenzhuo.lu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Wenzhuo Lu Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 4E0F82BA1 for ; Wed, 9 Mar 2016 10:50:35 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id n186so169664330wmn.1 for ; Wed, 09 Mar 2016 01:50:35 -0800 (PST) In-Reply-To: <1457494514-5862-2-git-send-email-wenzhuo.lu@intel.com> 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" 2016-03-09 11:35, Wenzhuo Lu: > + uint16_t udp_port; /**< UDP port used for the tunnel. */ > + uint8_t prot_type; /**< Tunnel type. */ Is 42 a valid tunnel type? Please reference where to find the constants. Think as a user who won't read your datasheet. [...] > /** > - * Add UDP tunneling port of an Ethernet device for filtering a specific > - * tunneling packet by UDP port number. > + * Add UDP tunneling port for a specific type of tunnel. > + * The packets with this UDP port will be parsed as this type of tunnel. We progress. What will be parsed? What will be the action? checksum? decapsulation? [...] > int > +rte_eth_dev_udp_tunnel_port_add(uint8_t port_id, > + struct rte_eth_udp_tunnel *tunnel_udp); > +/* Below is deprecated. Replaced by rte_eth_dev_udp_tunnel_port_add. */ > +int > rte_eth_dev_udp_tunnel_add(uint8_t port_id, > struct rte_eth_udp_tunnel *tunnel_udp); Better. Please make a doxygen comment with @see. We still need a __rte_deprecated attribute on the function. > --- a/lib/librte_ether/rte_ether_version.map > +++ b/lib/librte_ether/rte_ether_version.map > @@ -117,3 +117,10 @@ DPDK_2.2 { > > local: *; > }; > + > +DPDK_2.3 { > + global: > + > + rte_eth_dev_udp_tunnel_port_add; > + rte_eth_dev_udp_tunnel_port_delete; > +}DPDK_2.2; Please rename 2.3 to 16.04.