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 08B70A04B1 for ; Wed, 23 Sep 2020 15:26:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B6931DCC7; Wed, 23 Sep 2020 15:25:58 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 2BAD41DB92 for ; Wed, 23 Sep 2020 15:25:49 +0200 (CEST) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200923132548euoutp01772e155fff6863999d0a54f6d0dbd16a~3bI3Vj0qw1234112341euoutp012 for ; Wed, 23 Sep 2020 13:25:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200923132548euoutp01772e155fff6863999d0a54f6d0dbd16a~3bI3Vj0qw1234112341euoutp012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1600867549; bh=IOeOeopAHOosnQytqDrDXRlUBkjmRMVxxWKsQpzvEWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NHfx4CA5VVgGVE4kHLU+exolSAYcrUjpAjkSrq0zh3Yym/naJBnq7ZkbGkkqCaZYn CQTUe6lPypP17AX/kvUP+J1nQipEWii0xcsle8xB/iEIJpIqnm+ydkraEwP79sboTS gppE4vin4VvnNmLxV/krpNwkAdeuxz82xaIKxD0M= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200923132548eucas1p20af658a90660932e19dc5950f1c11c57~3bI25VcU50347203472eucas1p2b; Wed, 23 Sep 2020 13:25:48 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0F.33.06318.CDC4B6F5; Wed, 23 Sep 2020 14:25:48 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200923132548eucas1p2a54328cddb79ae5e876eb104217d585f~3bI2geVXb0347203472eucas1p2a; Wed, 23 Sep 2020 13:25:48 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200923132548eusmtrp2f66c9e48b6348e8cc2f02ff84a1c7dc4~3bI2f406_2233622336eusmtrp2W; Wed, 23 Sep 2020 13:25:48 +0000 (GMT) X-AuditID: cbfec7f5-371ff700000018ae-0b-5f6b4cdc39cb Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DC.A9.06314.CDC4B6F5; Wed, 23 Sep 2020 14:25:48 +0100 (BST) Received: from Padamandas.fritz.box (unknown [106.210.88.70]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200923132547eusmtip252f4a6b924d3710f79cf24db27698bbd~3bI1x4KME2715827158eusmtip2V; Wed, 23 Sep 2020 13:25:47 +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 15:25:37 +0200 Message-Id: <20200923132541.21417-5-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200923132541.21417-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsWy7djP87p3fLLjDVqOyVrcWGVv0TfpI5PF u0/bmSye9axjtPjX8YfdgdXj14KlrB6L97xk8jj4bg9TAHMUl01Kak5mWWqRvl0CV8bbt4cY Cy5zVvRs7GZrYJzE0cXIySEhYCLxuauDtYuRi0NIYAWjxOJbK1kgnC+MEl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GJh5gg 5stLrN5wAKyeU8BN4sOP94wQuxoZJTa+bWOcwMi3gJFhFaNIamlxbnpusaFecWJucWleul5y fu4mRmAobjv2c/MOxksbgw8xCnAwKvHwcuhmxwuxJpYVV+YeYpTgYFYS4XU6ezpOiDclsbIq tSg/vqg0J7X4EKMp0FUTmaVEk/OBcZJXEm9oamhuYWlobmxubGahJM7bIXAwRkggPbEkNTs1 tSC1CKaPiYNTqoEx976K5791L9k7jbYdOfrhjoSM1Ko93Jsblwce9OKwKIu4tJlx2uymM8nX jdYoRN+68j7cY/ZEhWr+lYHqssrLZ+17spytVDWLV64v/IrJdMvvl/o85v7f4Tb7bLXvl5+F q76WyDFa1d7gXpN7/2FGe7ccD086T/rKnG8dX08ue5ek/aJoe990JZbijERDLeai4kQAsvrB GFsCAAA= X-CMS-MailID: 20200923132548eucas1p2a54328cddb79ae5e876eb104217d585f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200923132548eucas1p2a54328cddb79ae5e876eb104217d585f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200923132548eucas1p2a54328cddb79ae5e876eb104217d585f References: <20200923014713.16932-1-l.wojciechow@partner.samsung.com> <20200923132541.21417-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-stable] [PATCH v3 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 Acked-by: David Hunt --- 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