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 D85C2A04B5 for ; Wed, 23 Sep 2020 03:47:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B2651DB55; Wed, 23 Sep 2020 03:47:33 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 4CD6E1DB2E for ; Wed, 23 Sep 2020 03:47:22 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200923014722euoutp01ff17556889900c39463c199f500e3ad1~3RnCg1m-j0326603266euoutp01C for ; Wed, 23 Sep 2020 01:47:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200923014722euoutp01ff17556889900c39463c199f500e3ad1~3RnCg1m-j0326603266euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600825642; bh=ay3uFOcN7bEP9pCkqxyZ1cgSSJeasqvOixtcGZmfYEU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VTTfbDjYodD0kgw/LH+ueO6+txawrxGknJ1nD+9vIpYfCQ1C85y8Z/WmL7amoN0+H 8HpBVWouwUPtEdaL3j1rMElIGUWs3NW/KrLgDKOs0LlO0DhQ68COwIfRzyy+Jr5GPO +CIxgOFThar6uvDpkeLnGe4ahrYJfZz6plJY8F1Q= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200923014721eucas1p19d1ffbc44e5b51e7b76df09efe2efa83~3RnBmo3Py2800828008eucas1p1o; Wed, 23 Sep 2020 01:47:21 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 36.AC.06318.829AA6F5; Wed, 23 Sep 2020 02:47:21 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200923014720eucas1p2bd5887c96c24839f364810a1bbe840da~3RnBP2Wcx1709717097eucas1p2Z; Wed, 23 Sep 2020 01:47:20 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200923014720eusmtrp1b0af35bf33944fe29362c10b87b02051~3RnBPS3_I1355413554eusmtrp1K; Wed, 23 Sep 2020 01:47:20 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-ca-5f6aa9281c7c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B9.DB.06017.829AA6F5; Wed, 23 Sep 2020 02:47:20 +0100 (BST) Received: from Padamandas.fritz.box (unknown [106.210.88.70]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200923014720eusmtip190879229b8b75de8b773a26e4ba8b35a~3RnAljnnl1064810648eusmtip1u; Wed, 23 Sep 2020 01:47:19 +0000 (GMT) From: Lukasz Wojciechowski To: David Hunt , Bruce Richardson Cc: dev@dpdk.org, l.wojciechow@partner.samsung.com, stable@dpdk.org Date: Wed, 23 Sep 2020 03:47:09 +0200 Message-Id: <20200923014713.16932-5-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200923014713.16932-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOIsWRmVeSWpSXmKPExsWy7djP87qaK7PiDaYdZrS4screom/SRyaL d5+2M1k861nHaPGv4w+7A6vHrwVLWT0W73nJ5HHw3R6mAOYoLpuU1JzMstQifbsErozvr26y FizjrOhsaWZuYHzF3sXIySEhYCLxp/sraxcjF4eQwApGib/3F7NDOF8YJe5/2wzlfG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vWGA2BrOQXcJJ7+k4dY1cgoMWPha/YJjHwLGBlWMYqklhbnpucWG+kVJ+YWl+al6yXn 525iBAbitmM/t+xg7HoXfIhRgINRiYf3xZPMeCHWxLLiytxDjBIczEoivE5nT8cJ8aYkVlal FuXHF5XmpBYfYjQFOmois5Rocj4wSvJK4g1NDc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5akZqem FqQWwfQxcXBKNTDuPl+8O+5Fg3BTvbyQKfP9GLM3C84bmNdttnTU/HRt8xyhE58bM33T/7Ye mFzCuUiZYfbKjwv/pAlsatHMPLnxnMvHvY0L/76L+Z3LNTshdJuyaLXD1VY1v3P7Eu876QWG nLlz/myy2/diL0N/Rqdr66YcNjvD+dpb86b2++LyFot9B4ImpP9SYinOSDTUYi4qTgQAgXH2 vloCAAA= X-CMS-MailID: 20200923014720eucas1p2bd5887c96c24839f364810a1bbe840da X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200923014720eucas1p2bd5887c96c24839f364810a1bbe840da X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200923014720eucas1p2bd5887c96c24839f364810a1bbe840da References: <20200915193449.13310-1-l.wojciechow@partner.samsung.com> <20200923014713.16932-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-stable] [PATCH v2 4/8] app/test: collect return mbufs in distributor test 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" During quit_workers function distributor's main core processes some packets to wake up pending worker cores so they can quit. As quit_workers acts also as a cleanup procedure for next test case it should also collect these packages returned by workers' handlers, so the cyclic buffer with returned packets in distributor remains empty. Fixes: c3eabff124e6 ("distributor: add unit tests") Cc: bruce.richardson@intel.com Fixes: c0de0eb82e40 ("distributor: switch over to new API") Cc: david.hunt@intel.com Cc: stable@dpdk.org Signed-off-by: Lukasz Wojciechowski --- app/test/test_distributor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c index 94b65b382..f31b54edf 100644 --- a/app/test/test_distributor.c +++ b/app/test/test_distributor.c @@ -610,6 +610,10 @@ quit_workers(struct worker_params *wp, struct rte_mempool *p) rte_distributor_process(d, NULL, 0); rte_distributor_flush(d); rte_eal_mp_wait_lcore(); + + while (rte_distributor_returned_pkts(d, bufs, RTE_MAX_LCORE)) + ; + quit = 0; worker_idx = 0; zero_idx = 0; -- 2.17.1