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 CF94EA04DD for ; Wed, 18 Nov 2020 17:37:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7CC2AC92C; Wed, 18 Nov 2020 17:37:29 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by dpdk.org (Postfix) with ESMTP id CC218C8DC for ; Wed, 18 Nov 2020 17:37:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605717446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lk3So60EJjGxJEAk244lI0bA7EwcUZet77xbB033daA=; b=NXVFoa2xmG7fTYVJbFF+1/ObZXKZ1gfh8jzXAur0Z3G74Iph49x01PZxrNhmJs0C6hWQb2 FqmWn/kX9D4hjzHAl02yH1NEs1lPbuQaAAcRllUdS7kEMizHfQDwGXBWzFGkuvIePYW+DZ M5bJJehgkYHlxBO6/3ugwPjoixcYvA0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-593-KzYBmH9hMj-NI5RNdUo2Vw-1; Wed, 18 Nov 2020 11:37:23 -0500 X-MC-Unique: KzYBmH9hMj-NI5RNdUo2Vw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 66A9C84E256; Wed, 18 Nov 2020 16:37:08 +0000 (UTC) Received: from rh.redhat.com (ovpn-113-249.ams2.redhat.com [10.36.113.249]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5A6215C1A3; Wed, 18 Nov 2020 16:37:07 +0000 (UTC) From: Kevin Traynor To: Lukasz Wojciechowski Cc: David Hunt , dpdk stable Date: Wed, 18 Nov 2020 16:35:17 +0000 Message-Id: <20201118163558.1101823-31-ktraynor@redhat.com> In-Reply-To: <20201118163558.1101823-1-ktraynor@redhat.com> References: <20201118163558.1101823-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-stable] patch 'distributor: fix clearing returns buffer' has been queued to LTS release 18.11.11 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.11 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/24/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/c4b0a4bbb4f64d7c9da58e981517ecc413341c1b Thanks. Kevin. --- >From c4b0a4bbb4f64d7c9da58e981517ecc413341c1b Mon Sep 17 00:00:00 2001 From: Lukasz Wojciechowski Date: Sat, 17 Oct 2020 05:06:59 +0200 Subject: [PATCH] distributor: fix clearing returns buffer [ upstream commit 20fa39d230d1e676c7bfe2a32f958f5851d471fc ] The patch clears distributors returns buffer in clear_returns() by setting start and count to 0. Fixes: 775003ad2f96 ("distributor: add new burst-capable library") Signed-off-by: Lukasz Wojciechowski Acked-by: David Hunt --- lib/librte_distributor/rte_distributor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c index 405c5d9dbf..12142ec73a 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -731,4 +731,6 @@ rte_distributor_clear_returns_v1705(struct rte_distributor *d) __atomic_store_n(&(d->bufs[wkr].retptr64[0]), 0, __ATOMIC_RELEASE); + + d->returns.start = d->returns.count = 0; } BIND_DEFAULT_SYMBOL(rte_distributor_clear_returns, _v1705, 17.05); -- 2.26.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-11-18 16:33:38.539470868 +0000 +++ 0031-distributor-fix-clearing-returns-buffer.patch 2020-11-18 16:33:37.933215065 +0000 @@ -1 +1 @@ -From 20fa39d230d1e676c7bfe2a32f958f5851d471fc Mon Sep 17 00:00:00 2001 +From c4b0a4bbb4f64d7c9da58e981517ecc413341c1b Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 20fa39d230d1e676c7bfe2a32f958f5851d471fc ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index fb4e9d93f9..ef34facba6 100644 +index 405c5d9dbf..12142ec73a 100644 @@ -22 +23 @@ -@@ -703,4 +703,6 @@ rte_distributor_clear_returns(struct rte_distributor *d) +@@ -731,4 +731,6 @@ rte_distributor_clear_returns_v1705(struct rte_distributor *d) @@ -28 +29 @@ - + BIND_DEFAULT_SYMBOL(rte_distributor_clear_returns, _v1705, 17.05);