From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 01/12] ethdev: extend flow director for input selection Date: Wed, 09 Mar 2016 11:36:49 +0100 Message-ID: <7414420.bicRBi3CqG@xps13> References: <1456918207-31696-1-git-send-email-jingjing.wu@intel.com> <1518710.DqorvmVtZj@xps13> <9BB6961774997848B5B42BEC655768F8DD16C1@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Wu, Jingjing" Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 13E412BC9 for ; Wed, 9 Mar 2016 11:38:29 +0100 (CET) Received: by mail-wm0-f42.google.com with SMTP id p65so186192137wmp.1 for ; Wed, 09 Mar 2016 02:38:29 -0800 (PST) In-Reply-To: <9BB6961774997848B5B42BEC655768F8DD16C1@SHSMSX104.ccr.corp.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 10:26, Wu, Jingjing: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2016-03-09 13:42, Jingjing Wu: > > > struct rte_eth_ipv4_flow { > > > uint32_t src_ip; /**< IPv4 source address to match. */ > > > uint32_t dst_ip; /**< IPv4 destination address to match. */ > > > + uint8_t tos; /**< Type of service to match. */ > > > + uint8_t ttl; /**< Time to live */ > > > + uint8_t proto; > > > > L4 protocol? > > > > > }; > > > > > > /** > > > @@ -443,6 +448,9 @@ struct rte_eth_sctpv4_flow { struct > > > rte_eth_ipv6_flow { > > > uint32_t src_ip[4]; /**< IPv6 source address to match. */ > > > uint32_t dst_ip[4]; /**< IPv6 destination address to match. */ > > > + uint8_t tc; /**< Traffic class to match. */ > > > + uint8_t proto; /**< Protocol, next header. */ > > > + uint8_t hop_limits; > > > }; > > > > Why some fields are not commented? > > I guess the values must be the ones found in the IPv4 header. > > Yes, you are correct. The fields defined in rte_eth_ipvx_flow are the ones in IP header. > Should I comments all of them? Please, do I really need to confirm that the API must be clearly documented?