From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 7E9371B1B9 for ; Wed, 24 Jan 2018 16:40:23 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2D0F6226A8; Wed, 24 Jan 2018 10:40:23 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:40:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=w7CHH1Wt+wcISQ1fU SU8cFichgZtIoOvQYz2hKOt1tE=; b=s0c68nJ/5dOfIueVOs9U5tauCFYbtXg3x y6ar3eTap9NjJJrZDLlMdx3aQlp7P3ViyTT6hTk7c7i6125cTD14ASKAfEs8dpN9 hUKMRbCswGVzDWNWNnoLnVK3pmaFpK8TeL7GywebG1d80aaCBxonAkq7yytpBFbn xSKLsHLsEQJ3NJBm9hm7K1ftoKj7fy0qd0qtOkGNzR5/HeL/EcfwyfXsxDXpSxC/ bukh4M9RNsc+yiVYqCHsAwBA8kAOZGxeDHOS79bRIzpAWnYU3v+JIbAxZMbpTubT WV6vI5BxckUFskZua/bE78n3rfWPTCYq3BnHXwd9BNR3TUQMe9+3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=w7CHH1Wt+wcISQ1fUSU8cFichgZtIoOvQYz2hKOt1tE=; b=Tw1JfUvf HIl3A18R0mTThWmz2HWCQ7Gr8u6MGNDzYTcVLFif/SY+MRRAmlESOoff42SC2A8g 141djJWsTRuWyRk/I6QLs945oBvJqVuWlPCd84u/lxyHh8Kg6ChXFF5Aqycw42uD 6QigwzIw/cRmoFskQWfi+pDR0YepG9dYP0cz/c9hNzv8kyen/HTHbWUQ2b9+UlVa s84mdcmAx1jcS0qsvzIqqVvEk8bQc8e4XNFfKMW7ROLQSXB2Kt+Z64ReHPAlWEIR 7oJA0YsGXUDu50GU/l65+QlPD8DRDyh1Yrn2UTwu/SsHjmsqo9fu6O4X7zDeMyLC 6kasOzJiOpa+zw== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 718F07E1BE; Wed, 24 Jan 2018 10:40:21 -0500 (EST) From: Yuanhan Liu To: Natalie Samsonov Cc: dpdk stable Date: Wed, 24 Jan 2018 23:32:49 +0800 Message-Id: <1516808026-25523-101-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/mrvl: fix shadow queue tail and size calculations' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:40:23 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From a8a65286a1f32c10045e4d1d46800d2934593c97 Mon Sep 17 00:00:00 2001 From: Natalie Samsonov Date: Thu, 11 Jan 2018 16:35:42 +0100 Subject: [PATCH] net/mrvl: fix shadow queue tail and size calculations [ upstream commit b2e5d0868ee7445ebb26e47e10a0a52409428ebe ] Reset skip_buf after use to avoid wrong tail and size calculations. Fixes: afb4d0d0bf91 ("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 d1ecbf8..a85a565 100644 --- a/drivers/net/mrvl/mrvl_ethdev.c +++ b/drivers/net/mrvl/mrvl_ethdev.c @@ -1896,6 +1896,7 @@ skip: sq->tail = (sq->tail + num) & MRVL_PP2_TX_SHADOWQ_MASK; sq->size -= num; num = 0; + skip_bufs = 0; } if (likely(num)) { -- 2.7.4