From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v10 06/11] net/failsafe: support flow API Date: Mon, 17 Jul 2017 17:03:46 +0100 Message-ID: <2230acd3-1119-22ab-5456-858d90e9f789@intel.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Gaetan Rivet , dev@dpdk.org Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 52005235 for ; Mon, 17 Jul 2017 18:03:53 +0200 (CEST) In-Reply-To: Content-Language: en-US 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 7/15/2017 6:57 PM, Gaetan Rivet wrote: > Signed-off-by: Gaetan Rivet > Acked-by: Olga Shern <...> > + > + flow = fs_flow_allocate(attr, patterns, actions); > + FOREACH_SUBDEV_ST(sdev, i, dev, DEV_ACTIVE) { > + flow->flows[i] = rte_flow_create(PORT_ID(sdev), > + attr, patterns, actions, error); Should SUB_ID(sdev) used here? And in related functions. flow->flows[SUB_ID(sdev)] = ... > + if (flow->flows[i] == NULL) { > + ERROR("Failed to create flow on sub_device %d", > + i); > + goto err; > + } <...>