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 40B14A0350; Wed, 6 May 2020 10:53:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CFC741D658; Wed, 6 May 2020 10:53:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 4DD5F1D655; Wed, 6 May 2020 10:53:52 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0468oLrQ007350; Wed, 6 May 2020 01:53:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=+Mt5VQwrZDCNWcZDZIO6hr/41QEpRAzaOyNR3ztJrkk=; b=ouE0ap9rAsIBBD2DGkB7SidpHUadmKZIv1YXNpsofiW9Vff+80DVVaIXI2t29+DqcPDv 5ADkeTQFZZ4ISHZ828iIe+2Z4mv/jmvw0a5CYy/8F6+kq+sCmzPJr7Rtf+XFAY+k9uBi B8C9u00+4OTkqHPjdAtk1FezMmGZkbiBOGut5Xq7S4/q/MFXVETNbu7XpXQCmCYfrTb6 5f6/5mFY/GbY4qXqldGbgk3XZAg+uf6rura0NBjNw0qDOvPzEDz/Csgz1xzMytpCXnA/ 3BL4eWYgteoyTFagiAjuFwBNAKelKMqmmShsbmJ2eGuEb9DdGBk26F4Pw+7S2XyTzlsF AQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 30uaukv730-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 06 May 2020 01:53:51 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 6 May 2020 01:53:49 -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 01:53:50 -0700 Received: from pt-lxl0023.marvell.com (pt-lxl0023.marvell.com [10.5.213.12]) by maili.marvell.com (Postfix) with ESMTP id 4CA933F703F; Wed, 6 May 2020 01:53:48 -0700 (PDT) From: To: , CC: , , Yuri Chipchev , Liron Himi Date: Wed, 6 May 2020 14:09:59 +0300 Message-ID: <20200506110959.23049-1-lironh@marvell.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-05-06_03:2020-05-04, 2020-05-06 signatures=0 Subject: [dpdk-dev] [PATCH] 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 number of enqueued events doesn't include events that were 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 --- 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