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 4C462A04BC for ; Thu, 8 Oct 2020 07:24:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76AF91BC8D; Thu, 8 Oct 2020 07:24:12 +0200 (CEST) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 077081B74B for ; Thu, 8 Oct 2020 07:23:50 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201008052348euoutp02af89ed316902f82613a9fb826ce811a8~77PTaynvz0628706287euoutp02J for ; Thu, 8 Oct 2020 05:23:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201008052348euoutp02af89ed316902f82613a9fb826ce811a8~77PTaynvz0628706287euoutp02J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1602134628; bh=ywYmxm+abMK7/w3PVolIPgc4wvJLruFOcPrSb20b5X0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxiyz2YSUMVQTVXl4eIfshCjV4n8QA4eFtGUxB/myw4+bRlVmjwPuH0ZUsw48/0JO qXTcGDQQ0ZrxhlT+V/QKslNCVlC6WLcRG2KgsXLxIkxnKe331BIOxHke3FUVoQ4vFk cdHHn8HXYkkdi19R4+qVk0WQdMXCisNACYFD+LDs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201008052348eucas1p26c4484948e8b1bca59791cca491e2047~77PTMu_rG2346323463eucas1p2A; Thu, 8 Oct 2020 05:23:48 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 43.AD.06318.462AE7F5; Thu, 8 Oct 2020 06:23:48 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201008052348eucas1p183cfbe10d10bd98c7a63a34af98b80df~77PSwcc8C1496314963eucas1p1C; Thu, 8 Oct 2020 05:23:48 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201008052348eusmtrp1482c4bd751e8d7cd87d3f91687757625~77PSv35D92941629416eusmtrp1a; Thu, 8 Oct 2020 05:23:48 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-bc-5f7ea2640149 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id AE.F0.06017.462AE7F5; Thu, 8 Oct 2020 06:23:48 +0100 (BST) Received: from Padamandas.fritz.box (unknown [106.210.88.70]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201008052347eusmtip1114450c93ae5557d367b098bd71fef9a~77PSGTBSg2964029640eusmtip1l; Thu, 8 Oct 2020 05:23:47 +0000 (GMT) From: Lukasz Wojciechowski To: David Hunt , Bruce Richardson Cc: dev@dpdk.org, l.wojciechow@partner.samsung.com, stable@dpdk.org Date: Thu, 8 Oct 2020 07:23:23 +0200 Message-Id: <20201008052323.11547-16-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201008052323.11547-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCIsWRmVeSWpSXmKPExsWy7djP87opi+riDVZMVrS4screom/SRyaL d5+2M1k861nHaPGv4w+7A6vHrwVLWT0W73nJ5HHw3R6mAOYoLpuU1JzMstQifbsErozrO9ez Fkxnr9jzPLKBcSJbFyMnh4SAicSC1u0sXYxcHEICKxglep6vYoVwvjBK9L/dwQJSJSTwmVHi z3uRLkYOsI4b/S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I6PEzfMz2SYw8i1gZFjFKJJaWpybnltspFecmFtcmpeul5yfu4kR GIbbjv3csoOx613wIUYBDkYlHl6Do7XxQqyJZcWVuYcYJTiYlUR4nc6ejhPiTUmsrEotyo8v Ks1JLT7EaAp01URmKdHkfGCM5JXEG5oamltYGpobmxubWSiJ83YIHIwREkhPLEnNTk0tSC2C 6WPi4JRqYDyyuvjpxxeiJ1n1VtuenvRubspSa5bdfvf+L5PUkT9+hdFtx40H70seuhXMcGac Fsl0ZevPay4188O2m5+dp6F78HVCQKpO1KeStKMuT2MMpzfNOLXFzOeWp8/59+cyGfxjY/ZI fHpncSHueeRXz2W2JQfPVOYaeBk5Bsjkz3Z+aPh8wX5jQRclluKMREMt5qLiRADFLOHCWQIA AA== X-CMS-MailID: 20201008052348eucas1p183cfbe10d10bd98c7a63a34af98b80df X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201008052348eucas1p183cfbe10d10bd98c7a63a34af98b80df X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201008052348eucas1p183cfbe10d10bd98c7a63a34af98b80df References: <20200925224209.12173-1-l.wojciechow@partner.samsung.com> <20201008052323.11547-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-stable] [PATCH v5 15/15] distributor: fix clearing returns buffer 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" The patch clears distributors returns buffer in clear_returns() by setting start and count to 0. Fixes: 775003ad2f96 ("distributor: add new burst-capable library") Cc: david.hunt@intel.com Cc: stable@dpdk.org Signed-off-by: Lukasz Wojciechowski --- 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 2478de3b7..57240304a 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -704,6 +704,8 @@ rte_distributor_clear_returns(struct rte_distributor *d) /* Sync with worker. Release retptrs. */ __atomic_store_n(&(d->bufs[wkr].retptr64[0]), 0, __ATOMIC_RELEASE); + + d->returns.start = d->returns.count = 0; } /* creates a distributor instance */ -- 2.17.1