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 CB178A034E; Wed, 6 May 2020 20:01:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D42421DA93; Wed, 6 May 2020 20:01:45 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id EE16D1DA90; Wed, 6 May 2020 20:01:44 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 046I0ul9007267; Wed, 6 May 2020 11:01:44 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=jnac7OKhhRi2JXWGK4F0tFx3/7Dmjc+WUicXdJCdy/0=; b=RCJNj/i5fONp1MMRSg4YsL3D3BiURPJyDZ7tQVF/xvOB89HuWREG8u9bc5ePw9ATmmS9 qIl2T7td/iA3qby9frU9M1/JmrXmaBQIkRqxcomPFmvqr/Gd284p30+lHtpEf/P5O/dY oJGF8pbRQ7wyYtDCOqw46xNxROhkwYgDW+du6P4w5+ANw9/raHxLuYWq+hlTdb4e/fD7 7jFtiTGoqGYdf2aMRpkGYKtAlJOz5G1Qr5Rs+nSzAKAMkLkFOrQcj7u6IgVSas6On37c teRKQSB3AUpSsE/Pn7rsMi8JcLwgsVmPNvQsd+x+87BVfN6dm/5LI+EW67yW2p6CIfGG Pw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 30urytt9dc-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 May 2020 11:01:44 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 May 2020 11:01:42 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 6 May 2020 11:01:43 -0700 Received: from pt-lxl0023.marvell.com (pt-lxl0023.marvell.com [10.5.213.12]) by maili.marvell.com (Postfix) with ESMTP id 217763F703F; Wed, 6 May 2020 11:01:40 -0700 (PDT) From: To: , CC: , , Yuri Chipchev , Liron Himi Date: Wed, 6 May 2020 23:18:37 +0300 Message-ID: <20200506201837.24803-1-lironh@marvell.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200506110959.23049-1-lironh@marvell.com> References: <20200506110959.23049-1-lironh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-06_09:2020-05-05, 2020-05-06 signatures=0 Subject: [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" 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/stop") Cc: stable@dpdk.org Signed-off-by: Yuri Chipchev Reviewed-by: Liron Himi --- 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_event.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 -- 2.23.0