From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F3657A00C3; Thu, 14 May 2020 09:15:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CA2311D636; Thu, 14 May 2020 09:15:37 +0200 (CEST) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) by dpdk.org (Postfix) with ESMTP id 6889A1D628; Thu, 14 May 2020 09:15:36 +0200 (CEST) Received: by mail-il1-f195.google.com with SMTP id b18so2298805ilf.2; Thu, 14 May 2020 00:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PtcZ5m6SsyFeta+0k/OWvZUuVqhuU1dJ37t/2vkSK3w=; b=JxGFCGZb//ULEZpbxY403Y+lG5B+0rnSBIp4ctVDN/0bO2vtFZyQ95W8CVCWIzPl0y IaoQKtTVK8wNUsnXVg7+ERQ9iLUcLqYqay16oY1weqOZb+UGZFuIHJ9k7dwPhIzRvbE9 L2dlMG94T8UZjwoqsqIO3DCwsbhigBqIpyRRcEkpu14dRDcpUno+qQlCgZLZRcemCID2 GmyavKOW9q0kiuc7V7T/AYgMCAL3ZMtlYQUGgUodtu7JKuFA22kuJceYq5tFO7bs81Hi 5sBDDCkZLyuCRcdTY0olORr+6pIdqLRphHASwHqYxQD6b2sIQtR9hjNWADIkuhNlA4Jz jelg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PtcZ5m6SsyFeta+0k/OWvZUuVqhuU1dJ37t/2vkSK3w=; b=Z64kgJ4qbmxYuawqMYiX2UONVDFtlts0F1pTnA9BViYUDAioq4YFOk0IVmIaTRbO93 OgNH2UmBhJAjChfua1oxf/N2VbdwIMwLxtp1dhiMuDt0oQ+HMhncEGaxf/Iit319fBBV 8hAQ012fsz5m7xn536pwbSFJWfig736flQEeVe5UADCCiwjsgdJcX56arVv90wSXebk7 9JS2dKvwdo6FXN+ittP7VUx5KGw/klKsk8NjgaIv1prF7oXCDrGPkP/k67nSeyok5T+W X9z1CffpuODvE1vnHz9sHRLYSIb0tbK2mxRh9DETmMeY90w9i2ayUW25XPjBabIVZAa2 n6rQ== X-Gm-Message-State: AOAM532v9bN2CQJxY6jwpkZX6aEKQSWla4KF0+f/PSH7lq4SrGT9Zqcf qHunDBpT00HZJjHC82s0UyHOjHUKN6Rq1tXI7S0= X-Google-Smtp-Source: ABdhPJxZko89Yd6govmDk4S7450zgnxpTAF6McEoxCWsGVUIFf0+3kMdWkYfL6isWzjJT4gWrS9X4kwTOQV2shQHAY8= X-Received: by 2002:a92:2c03:: with SMTP id t3mr3447501ile.130.1589440535748; Thu, 14 May 2020 00:15:35 -0700 (PDT) MIME-Version: 1.0 References: <20200506110959.23049-1-lironh@marvell.com> <20200506201837.24803-1-lironh@marvell.com> In-Reply-To: From: Jerin Jacob Date: Thu, 14 May 2020 12:45:19 +0530 Message-ID: To: =?UTF-8?Q?Mattias_R=C3=B6nnblom?= Cc: "lironh@marvell.com" , "jerinj@marvell.com" , "dev@dpdk.org" , "stable@dpdk.org" , Yuri Chipchev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2] event/dsw: fix enqueue burst return value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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, May 7, 2020 at 11:39 AM Mattias R=C3=B6nnblom wrote: > > On 2020-05-06 22:18, lironh@marvell.com wrote: > > From: Yuri Chipchev > > > > The returned number from rte_event_enqueue_*() > > wouldn't include events marked with RTE_EVENT_OP_RELEASE. > > > > Fixes: 1c8e3caa3 ("event/dsw: add event scheduling and device start/sto= p") > > Cc: stable@dpdk.org > > > > Signed-off-by: Yuri Chipchev > > Reviewed-by: Liron Himi > > > Acked-by: Mattias R=C3=B6nnblom Applied to dpdk-next-eventdev/master. Thanks. > > > > --- > > v2: > > - update commit description > > > > drivers/event/dsw/dsw_event.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_even= t.c > > index e5e3597aa..611b36781 100644 > > --- a/drivers/event/dsw/dsw_event.c > > +++ b/drivers/event/dsw/dsw_event.c > > @@ -1231,7 +1231,7 @@ dsw_event_enqueue_burst_generic(struct dsw_port *= source_port, > > DSW_LOG_DP_PORT(DEBUG, source_port->id, "%d non-release events " > > "accepted.\n", num_non_release); > > > > - return num_non_release; > > + return (num_non_release + num_release); > > } > > > > uint16_t > >