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 C70FDA2F67 for ; Fri, 4 Oct 2019 14:24:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B15151C21B; Fri, 4 Oct 2019 14:24:57 +0200 (CEST) Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by dpdk.org (Postfix) with ESMTP id 1FEF01C20B; Fri, 4 Oct 2019 14:24:56 +0200 (CEST) Received: by mail-io1-f65.google.com with SMTP id n26so13009049ioj.8; Fri, 04 Oct 2019 05:24:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nmUj+A3N7ZxSR2p7xh+Lopmlj8XV0d5bT+CanrXfJOo=; b=qayWJgVQb4tIFybKUO9PSfdSLDuuIyhqTm0QPX4Dl/IhLHU0h1qCu72LabuqTIY5jr npkturzsdVF+yiJSaBZXOr5171gCia3VnDYtxAkqK+boR2NFFP8Xe0NvSoJW229Souwm YHrkL/zfMn34owknKVM7HTnS8voTF5ITwIiUPvQHzHb/SExfwn+CdB8q9SfPLhFG47nS aD2RDv7hVDZFUK+Dis6xvgnzu1JmFKgGZNlIOd9y+LGudj+h3zweuPE8TecBaKiOe3+l M+h2vp8+A9FwhcnDyV1A7Tws+Bufdpsy5wkAifuc2KDDz9yWudFXKPbby/SdsjFAu/ag ZmWQ== 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=nmUj+A3N7ZxSR2p7xh+Lopmlj8XV0d5bT+CanrXfJOo=; b=YHloJXLjLOZeXpwKSYDRkF91/V3iAdhvC7SYAlxf33W8q0GdERF0MjNVmKFgGocBq/ ef5gs3/dkuNeT0UZ4RHmOE3DVz1v2kXRRmunMtg8fx254dF4jc8pkysnRQeCd6NAGiZ8 jIEpHP124lh+2W1Fmdn6KfPaV32hYm8PJjdbBdt56dwdQo3bbVcl4dpMN7AdmW4PeVJe X3L/3XBo5zWS7eIoKhQC77FM58CoESDat/QKhJBKbdkDPUcrQaJ3UbTPl3dytdUj/xSc Bke94Jb12n773ZjUExtufjnYrpP7bPNBsvYt8jyq/UgZ40GJBuavCskUuuWB7X2Oc+eB Djjg== X-Gm-Message-State: APjAAAU0jXSPNXX+8bkg3Akwg61oqPcFD1stHJ6L9im52EU4gazddOrr CqmU4jLp9Jm6voh9YaE9tunTZP10kmULkRiooZc= X-Google-Smtp-Source: APXvYqxQrlY3JnKvUdAOrt6FglIElNV+84BRfBJ63awKM8gdwxDL68SPV00MyIs8ihRLzr5I0aUBxAbJJ7ZUAn30kbM= X-Received: by 2002:a92:1559:: with SMTP id v86mr15855428ilk.130.1570191895120; Fri, 04 Oct 2019 05:24:55 -0700 (PDT) MIME-Version: 1.0 References: <20190913153112.19852-1-jerinj@marvell.com> In-Reply-To: <20190913153112.19852-1-jerinj@marvell.com> From: Jerin Jacob Date: Fri, 4 Oct 2019 17:54:43 +0530 Message-ID: To: Jerin Jacob Cc: dpdk-dev , Nithin Dabilpuram , Kiran Kumar K , Kommula Shiva Shankar , stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: fix CQE ring prefetch on wrap around case 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" On Fri, Sep 13, 2019 at 9:01 PM wrote: > > From: Kommula Shiva Shankar > > When computing the head of CQE ring of prefetch, use qmask to point to > the correct head index on wrap around case. > > Fixes: cc4d7693f2d9 ("net/octeontx2: support Rx") > Cc: stable@dpdk.org > > Signed-off-by: Kommula Shiva Shankar > Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/master. Thanks > --- > drivers/net/octeontx2/otx2_rx.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/octeontx2/otx2_rx.c b/drivers/net/octeontx2/otx2_rx.c > index 701efc858..48565db03 100644 > --- a/drivers/net/octeontx2/otx2_rx.c > +++ b/drivers/net/octeontx2/otx2_rx.c > @@ -61,7 +61,8 @@ nix_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, > > while (packets < nb_pkts) { > /* Prefetch N desc ahead */ > - rte_prefetch_non_temporal((void *)(desc + (CQE_SZ(head + 2)))); > + rte_prefetch_non_temporal((void *)(desc + > + (CQE_SZ((head + 2) & qmask)))); > cq = (struct nix_cqe_hdr_s *)(desc + CQE_SZ(head)); > > mbuf = nix_get_mbuf_from_cqe(cq, data_off); > -- > 2.23.0 >