From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v2 2/3] event/sw: implement unlinks in progress function Date: Sun, 23 Sep 2018 16:38:04 +0530 Message-ID: <20180923110803.GD20954@jerin> References: <20180912161616.42306-1-harry.van.haaren@intel.com> <20180920112251.47854-1-harry.van.haaren@intel.com> <20180920112251.47854-2-harry.van.haaren@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, matias.elo@nokia.com To: Harry van Haaren Return-path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0068.outbound.protection.outlook.com [104.47.40.68]) by dpdk.org (Postfix) with ESMTP id 9EB6C201 for ; Sun, 23 Sep 2018 13:08:32 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180920112251.47854-2-harry.van.haaren@intel.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" -----Original Message----- > Date: Thu, 20 Sep 2018 12:22:50 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, matias.elo@nokia.com, Harry van Haaren > > Subject: [PATCH v2 2/3] event/sw: implement unlinks in progress function > X-Mailer: git-send-email 2.17.1 > > > This commit adds a counter to each port, which counts the > number of unlinks that have been performed. When the scheduler > thread starts its scheduling routine, it "acks" all unlinks that > have been requested, and the application is gauranteed that no > more events will be scheduled to the port from the unlinked queue. > > Signed-off-by: Harry van Haaren > > --- > > > +static int > +sw_port_unlinks_in_progress(struct rte_eventdev *dev, void *port) > +{ > + struct sw_port *p = port; > + return p->unlinks_in_progress; Compilation error: /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c: In function ‘sw_port_unlinks_in_progress’: /export/dpdk-next-eventdev/drivers/event/sw/sw_evdev.c:124:50: error: unused parameter ‘dev’ [-Werror=unused-parameter] sw_port_unlinks_in_progress(struct rte_eventdev *dev, void *port) > +} > +