From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0A09A0505 for ; Wed, 18 May 2022 16:04:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A54D040222; Wed, 18 May 2022 16:04:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8867A400D6; Wed, 18 May 2022 16:04:16 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24I8tbxb008782; Wed, 18 May 2022 07:04:15 -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=pfpt0220; bh=59Nkp9KhCZCSgXr52PFJsVsNZgpqMIJzjHLBYaeFXDU=; b=kEc0Dkty+WuvImU6oJoSkaEGQdZBxYA3Ym7QBhxKL3moMCyJG+E9Ji8N0iuQiCSjt1Sz sFivcqiGMN73/Y8xg6IFvyggXuJybmigBGkJAk2B4fAMV2eJQlXgom+JRtsThTeQYO49 LjT9DXeZQAk8ocQrpjH7iXc5+MLB+i606Vmz02aCHSJF1QRiIzad1dOkL01SwbvQ4HyQ OctZ/B6THamge9bLSfNGyCVAhqPaiuWLVYy4yUQj3aVOAJ+HdGk8V3NZFFzcuMqoGSms kUndYWXrKLV28L9mzN0xMPmlmmvpOT83Es1NaEGGqKVBG1sNNeGyY6wloJKpCwv1xikp PQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g4m6f37b6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 07:04:15 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 18 May 2022 07:04:13 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 18 May 2022 07:04:13 -0700 Received: from MININT-80QBFE8.corp.innovium.com (unknown [10.193.70.72]) by maili.marvell.com (Postfix) with ESMTP id 786C73F704E; Wed, 18 May 2022 07:04:11 -0700 (PDT) From: To: Pavan Nikhilesh , Shijith Thotton CC: , , Subject: [PATCH] event/cnxk: fix incorrect return value Date: Wed, 18 May 2022 19:34:11 +0530 Message-ID: <20220518140411.5284-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 7f7HvgmM9s_MOzZUe9N0R2S4JqK33XU7 X-Proofpoint-ORIG-GUID: 7f7HvgmM9s_MOzZUe9N0R2S4JqK33XU7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-18_05,2022-05-17_02,2022-02-23_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Pavan Nikhilesh The `rte_event_eth_tx_adapter_enqueue()` function expects driver layer to return the total number of events successfully transmitted. Fix cn10k driver returning the number of packets transmitted in a event vector instead of number of events. Fixes: 761a321acf91 ("event/cnxk: support vectorized Tx event fast path") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cn10k_worker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/cnxk/cn10k_worker.h b/drivers/event/cnxk/cn10k_worker.h index 034f508dd8..0915f404e0 100644 --- a/drivers/event/cnxk/cn10k_worker.h +++ b/drivers/event/cnxk/cn10k_worker.h @@ -651,7 +651,7 @@ cn10k_sso_hws_event_tx(struct cn10k_sso_hws *ws, struct rte_event *ev, } rte_mempool_put(rte_mempool_from_obj(ev->vec), ev->vec); rte_prefetch0(ws); - return (meta & 0xFFFF); + return 1; } m = ev->mbuf; -- 2.25.1