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 34692A04BC for ; Fri, 9 Oct 2020 15:12:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B95ED1D5CE; Fri, 9 Oct 2020 15:12:28 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id D80B91C1D0; Fri, 9 Oct 2020 15:12:23 +0200 (CEST) IronPort-SDR: s20JW9FNGdJYFEBS9lpuqpHOFRciK4ZdO4LOHoc7JRzNO38uvglXabZkTopYy+U9R0tq6jn4Jp 2GtCQ0XIEUTg== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="250175099" X-IronPort-AV: E=Sophos;i="5.77,355,1596524400"; d="scan'208";a="250175099" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2020 06:12:22 -0700 IronPort-SDR: VsGZxbQW5xHer4/yWKticmEsqVev5I7AiDyQ13caDjHw9solI5reqgRcE43mcXc3SicLSNVZFb 66rUjy1zojcA== X-IronPort-AV: E=Sophos;i="5.77,355,1596524400"; d="scan'208";a="528923015" Received: from dhunt5-mobl5.ger.corp.intel.com (HELO [10.249.34.11]) ([10.249.34.11]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2020 06:12:20 -0700 To: Lukasz Wojciechowski , Bruce Richardson Cc: dev@dpdk.org, stable@dpdk.org References: <20200925224209.12173-1-l.wojciechow@partner.samsung.com> <20201008052323.11547-1-l.wojciechow@partner.samsung.com> <20201008052323.11547-16-l.wojciechow@partner.samsung.com> From: David Hunt Message-ID: Date: Fri, 9 Oct 2020 14:12:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201008052323.11547-16-l.wojciechow@partner.samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [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" Hi Lukasz, On 8/10/2020 6:23 AM, Lukasz Wojciechowski wrote: > 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 */ Acked-by: David Hunt