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 30E95A0C47; Thu, 19 Aug 2021 06:48:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83CCF4067E; Thu, 19 Aug 2021 06:48:37 +0200 (CEST) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by mails.dpdk.org (Postfix) with ESMTP id B3B4940141 for ; Thu, 19 Aug 2021 06:48:36 +0200 (CEST) Received: by mail-qt1-f172.google.com with SMTP id x5so3538986qtq.13 for ; Wed, 18 Aug 2021 21:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bCTQrmVkCvZBt7vqqJb47nytCZKKOU1pBg0AW49+GXI=; b=bfiC9TE+wmuotjOnqckgtJpINFiQ1bYjMYxmtlOFZsA9c2AfybAVsbHU9rNHIj8LnC YcfDvkJNoO987c01+DMsF24IJSSlTmVjVolLutBWPDYIBrB6oYr8iXFa6SiF2Q9jKOtL P1c1iat9reXnwHTqIsSLiqiR0/87nxdt6Kp4A= 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; bh=bCTQrmVkCvZBt7vqqJb47nytCZKKOU1pBg0AW49+GXI=; b=LODddr2Mypl3Z+ZaNCoFNu76vKMGtYd3SvV9p+V5sJFq7y1Z8I1w9mm9pQl/x65Wz1 IqCPV66/9O9Y665/YnS9Q65RU9EprgOa15jtPK5fH2T07C/yfTGkrWTS1I8DxY9+kMGs +lQq8yHBsvBQY9oCiwcSodaq2YNzCtO+sVFYoxDmEX6ysU+criACH4he+e5td7OtRehI I9GNhZhE6t5VL2oCK2zw+3NTR2Ik9T0N1IWvFoJduqg+Jo99Pu38oLXtIr6sa84NsWmM iAPL8ajSmHz8slsZlySdaJL2bWHmALnaDpjmHn2X4+xRjWxBGxW22NytzptJ0sKOpm08 DozQ== X-Gm-Message-State: AOAM530cKBX0UWuHVdSY29NJjmO4d47S2NcQqK/rVKGZWiigTPw9LVvF JRE+w5i1U4e5U57IKuRkgRSc9LpW0O6j8ZyAKS0qjg== X-Google-Smtp-Source: ABdhPJwSOqvE2x6l9I+nv2ajRjzz28//sIz5IPDonaNZmTvlchBd4kNF5MnaKI8ct4nKgIHZOwStmip3LBNpduN/JP4= X-Received: by 2002:ac8:7d88:: with SMTP id c8mr2675531qtd.208.1629348515998; Wed, 18 Aug 2021 21:48:35 -0700 (PDT) MIME-Version: 1.0 References: <20210810060731.30127-1-somnath.kotur@broadcom.com> In-Reply-To: <20210810060731.30127-1-somnath.kotur@broadcom.com> From: Ajit Khaparde Date: Wed, 18 Aug 2021 21:48:19 -0700 Message-ID: To: Somnath Kotur Cc: dpdk-dev , Ferruh Yigit , dpdk stable , Kalesh AP Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="00000000000087080e05c9e243f4" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH] net/bnxt: fix to reset Rx next consumer index X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" --00000000000087080e05c9e243f4 Content-Type: text/plain; charset="UTF-8" On Mon, Aug 9, 2021 at 11:11 PM Somnath Kotur wrote: > In bnxt_init_one_rx_ring(), reset this variable internal to the driver > ring to 0, so that there is no mismatch with actual value in HW on > traffic resumption. > > Fixes: 03c8f2fe111c ("net/bnxt: detect bad opaque in Rx completion") > Cc: stable@dpdk.org > > Signed-off-by: Somnath Kotur > Reviewed-by: Kalesh AP > Reviewed-by: Ajit Khaparde > Patch applied to dpdk-next-net-brcm for-next-net branch. --- > drivers/net/bnxt/bnxt_rxr.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c > index aea71703d1..73fbdd17d1 100644 > --- a/drivers/net/bnxt/bnxt_rxr.c > +++ b/drivers/net/bnxt/bnxt_rxr.c > @@ -1379,6 +1379,9 @@ int bnxt_init_one_rx_ring(struct bnxt_rx_queue *rxq) > } > PMD_DRV_LOG(DEBUG, "TPA alloc Done!\n"); > > + /* Explicitly reset this driver internal tracker on a ring init */ > + rxr->rx_next_cons = 0; > + > return 0; > } > > -- > 2.28.0.497.g54e85e7 > > --00000000000087080e05c9e243f4--