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 58346A0553 for ; Mon, 13 Jun 2022 07:58:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4712C410DD; Mon, 13 Jun 2022 07:58:13 +0200 (CEST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by mails.dpdk.org (Postfix) with ESMTP id CA91B40150; Mon, 13 Jun 2022 07:58:10 +0200 (CEST) Received: by mail-qv1-f49.google.com with SMTP id 89so3756970qvc.0; Sun, 12 Jun 2022 22:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dnbcUI0/6CEHyLNbvPpouvq9N3gK7RTIc4C1gAHPnmw=; b=Y+vwsiLsIKk8USbp67FHREW5Xov5vzAnRJyBj78H80+lgcZFj5FfBht1OAjPRqRfeh 7EDVy6bcv+6i4EE9ZstKtQzFeN7B716+fVosd5TA3cwVSzD3VrHio/ELPb9vSkU7VqT0 zCE2jM/E5hU5Ruf9zAg3YLEpqizqYP8UOuNuxwldL4vJmmrAAEJn5qhvazicaWpgWl+k HyW9m+wclKGI6e58epyBot8aLLjksTYaP49CQXxosOHa+EKPSA4F4KfI+pLS5nx4szm6 WHttdwmtoKyyorsYGWI40HTmhJa4cgHw9jFH/oGLMKgMG7sMMFqBgFR9a7ygPHHDRPrJ 33Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dnbcUI0/6CEHyLNbvPpouvq9N3gK7RTIc4C1gAHPnmw=; b=h1qqBYzXWKbkwqfdlEJPUGjpn8llind7oS6SMbKRewehgssTSxxxYy8AlixRgTOKCT Ed4cbMJigKr5vrXuJv2Xx/aCsUGLU17NPoLn8nuOjvAGL3Vy9dFwF4rA3LktKHhQJIpt ijgLSA6oP2luh/y1BYKPuo6Kdw7XVbIJRVc6Oo4IeE9oI+eM5q5I3HUgRFN85Z8494t1 SeSoTSLBsjjxLajihuSNgWDmz+3kypDTDslz/bsQe0oY9A0JNI65OZ9q2x1Eu3jJQRPl m6WcEWnXWmNBf62AJ6x7zVT8E6FHewhxEQ/FpkW+SQ9NV6UeeENdk3p2scoJIFoCpG4c xE6g== X-Gm-Message-State: AOAM5308e/zDkVid3gq0IXmyeM37QBBdwSLkgLtewxc1q/NOguGh1/G4 tuUg4zU8fQykWiKnODyD4Ltir4cB1VBlnmM+mJIR/Q7jexE= X-Google-Smtp-Source: ABdhPJwZ3T9mRFZ9ZLDVDj1LZzsO95GLvdfOcps9Fg/ot+oO6phL3BnUClJluhd/2F4iNfMSdq1nq6Q/0bqI1EeQ6zE= X-Received: by 2002:ad4:594d:0:b0:46b:afcf:fb67 with SMTP id eo13-20020ad4594d000000b0046bafcffb67mr26253861qvb.11.1655099890195; Sun, 12 Jun 2022 22:58:10 -0700 (PDT) MIME-Version: 1.0 References: <20220518140411.5284-1-pbhagavatula@marvell.com> In-Reply-To: <20220518140411.5284-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Mon, 13 Jun 2022 11:27:44 +0530 Message-ID: Subject: Re: [PATCH] event/cnxk: fix incorrect return value To: Pavan Nikhilesh Cc: Shijith Thotton , Jerin Jacob , dpdk-dev , dpdk stable Content-Type: text/plain; charset="UTF-8" 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 On Wed, May 18, 2022 at 7:34 PM wrote: > > 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 Applied to dpdk-next-net-eventdev/for-main. Thanks > --- > 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 >