From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id 24782A491 for ; Thu, 11 Jan 2018 16:36:02 +0100 (CET) Received: by mail-lf0-f66.google.com with SMTP id w23so3232952lfd.11 for ; Thu, 11 Jan 2018 07:36:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FzSxTJvflVATvGDEo1g6XsAf58MLyN846BPA2bPk/ok=; b=qBx5exY2zHnUfL79VONRWfGQnu0pn2HjNPEF2rG7rbowt0Dr0ASmXytL8Qgmd7C42K AycSbIqmNcasUaPltt4GDkHUpcbJ4gcFZ6HBOsgJyCPaZQ9v1fszuVvprVZo1pAU+nZi wNMh1l4zCGEPj/hB0nG+z6DVjFcR/BuuLxcuoilVr5eSYekDHGbX0y1wfAdPpWLJMZAn TxGbCBt1IYj9vH6jlyFgyQSCi5PrC95F3GI+0+6iADPdRPtU67Bjjl7nbBRk/iOGIcXP Pp1YK/0JmygRBSD5p0Fvd11PSA6uV/rh0OkRwrym+RPJujIAyUF+jPfUbZKS1LvJ+KFh 3PTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FzSxTJvflVATvGDEo1g6XsAf58MLyN846BPA2bPk/ok=; b=jpyn9SyRdV2AQWCVbHPflemRi5W6zzuaKuGhJJl8+4Ls+4BPHBQX9c8lYQU6xKY4zB UXEVYNi6y/+dPbhH2IzGMk9vbF/0mdhg+/fDcwCqS9UJD7A1IWA9VN3mLXWh1LaVUgc3 4ePITqSbs0GQfHwy1qbmMCAbZeA0dp5Bl6AK4rthcwY898utPH9H0mWqI43bUdoa2Imb ZQZ+YaZo4KI7D6qON6ujCcV/P9ZWH+D+M2JwLQDa2sGJXdUxsK2A+98lUckXxQAcUxmv aAxgd2M42cY2FMHs6RKrnSqfQuLrkxnFbqGsCHo64ByXP6Y/mgXuaxnkqpwBorhirQJV 9S5Q== X-Gm-Message-State: AKGB3mIm2U/T/DaRNfENTtxGErN8vaLOsrJzj9dhjoLhfbrzdI2IxMwD H4cANBLir5YNEnAsCkodfiHKt/v1qSY= X-Google-Smtp-Source: ACJfBotQNXnFGm20nZnktCP4DpXziMBRAyyJu5uJeVq4yZCR+rhNb+ArwZ67sEJ9lcVjueHTpWU2cw== X-Received: by 10.46.93.12 with SMTP id r12mr13961586ljb.17.1515684961596; Thu, 11 Jan 2018 07:36:01 -0800 (PST) Received: from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id y15sm3923018lje.10.2018.01.11.07.36.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Jan 2018 07:36:00 -0800 (PST) From: Tomasz Duszynski To: dev@dpdk.org Cc: jck@semihalf.com, mw@semihalf.com, dima@marvell.com, nsamsono@marvell.com, Jianbo.liu@arm.com Date: Thu, 11 Jan 2018 16:35:42 +0100 Message-Id: <1515684943-32506-5-git-send-email-tdu@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515684943-32506-1-git-send-email-tdu@semihalf.com> References: <1515684943-32506-1-git-send-email-tdu@semihalf.com> Subject: [dpdk-dev] [PATCH 4/5] net/mrvl: fix shadow queue tail and size calculations 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: , X-List-Received-Date: Thu, 11 Jan 2018 15:36:02 -0000 From: Natalie Samsonov Reset skip_buf after use to avoid wrong tail and size calculations. Fixes: afb4d0d ("net/mrvl: add Rx/Tx support") Signed-off-by: Natalie Samsonov --- drivers/net/mrvl/mrvl_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mrvl/mrvl_ethdev.c b/drivers/net/mrvl/mrvl_ethdev.c index e650bf8..7ce4df3 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -1932,6 +1932,7 @@ mrvl_free_sent_buffers(struct pp2_ppio *ppio, struct pp2_hif *hif, sq->tail = (sq->tail + num) & MRVL_PP2_TX_SHADOWQ_MASK; sq->size -= num; num = 0; + skip_bufs = 0; } if (likely(num)) { -- 2.7.4