From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH v5] ethdev: add flow API to expand RSS flows Date: Thu, 28 Jun 2018 18:09:27 +0200 Message-ID: <20180628160927.GI4025@6wind.com> References: <20180627145525.8659-1-nelio.laranjeiro@6wind.com> <2b29e115e43f519e2cc2fa1a075849f53c7bf92a.1530201647.git.nelio.laranjeiro@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Nelio Laranjeiro Return-path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 5F8F32BF9 for ; Thu, 28 Jun 2018 18:09:44 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id p1-v6so6088578wrs.9 for ; Thu, 28 Jun 2018 09:09:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: <2b29e115e43f519e2cc2fa1a075849f53c7bf92a.1530201647.git.nelio.laranjeiro@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 28, 2018 at 06:01:21PM +0200, Nelio Laranjeiro wrote: > Introduce an helper for PMD to expand easily flows items list with RSS > action into multiple flow items lists with priority information. > > For instance a user items list being "eth / end" with rss action types > "ipv4-udp ipv6-udp end" needs to be expanded into three items lists: > > - eth > - eth / ipv4 / udp > - eth / ipv6 / udp > > to match the user request. Some drivers are unable to reach such > request without this expansion, this API is there to help those. > Only PMD should use such API for their internal cooking, the application > will still handle a single flow. > > Signed-off-by: Nelio Laranjeiro > > --- > > Changes in v5: > > - Replace the struct rte_flow_expand_rss field by a flexible array, > - Address all nits. Acked-by: Adrien Mazarguil With just a couple of tiny nits, not sure they're worth a v6. See below. > +/** Node object of input graph for rte_flow_expand_rss(). */ > +struct rte_flow_expand_node { > + const int *const next; > + /**< List of next node indexes. Index 0 is interpreted as a > + * terminator. */ > + const enum rte_flow_item_type type; > + /**< Pattern item type of current node. */ > + uint64_t rss_types; > + /**< RSS types bit-field associated with this node (see ETH_RSS_* > + * definitions).*/ > +}; Multi-line comments should have opening and closing tokens on dedicated lines. > + * @param[in] graph. Extra "." -- Adrien Mazarguil 6WIND