From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id E8FE92BA3 for ; Tue, 1 May 2018 12:47:29 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id x12so14497060wmc.0 for ; Tue, 01 May 2018 03:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BTzY1NrWKSfSGesdeEbiof73uMQLSo9aMT40EcMfX1U=; b=vAwKci0LpA+ybnd6Lm0bU3HQitFcWwKy8uBhVd/C26ArCwR9AU0eTRax504Gqvmulo GUScKvi/3+5tslEskmrn2n1dw46MTPWxdRYI3pyRqckKX21vUQk5/1bImSqJnT/Wvd5x ZOho2FfKkUCd00up7l8GqLMKHk8tDObW1lLWXBC2c1o0j0rjmBP7oMyjSCBiX/YEn/81 vQ4ufXekRZRmCZsf9biBTLUWI1vJkW5bHYGFairFiQ+HSdE7/oZNQs+qVbHb84s2nP6y Q8BlydZZXTAocrzyRrSfGeJlOJqnqeoiQ/f2rJNCraWmaLkckp4mDrOhEznFLrx0DEQb T3sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BTzY1NrWKSfSGesdeEbiof73uMQLSo9aMT40EcMfX1U=; b=ecsg2Y/JsKHxqlzWLX8aM3ap2kV15xvS1wDcTkET6+nX27x8aW5RVcf0MGIwwTI7X5 g6hT7mR9cOlkahQ8DiL5hbeUznrdV1Prtehg2I8V3eJSQiPGjzBVKAArPhX9mmKSYEGy 8qGhcc0OXnSJUUgkbL1fdjyDhfSg4wp81/1yVwKwDkfRYMrKzmmlT5fmxe7l0H5XoCI8 ICvyLYwjy1U5BKuickf3bUN5zvdKgoZ7iwESavEi5nMTjyrOEDAFJ/vM1q6AMh8yexQa kiMBv0pQQrg+Zh0GEBYjay2RU9PvvUoKRt4J5nHOg3M4c1CZbNxhtZ4W41w3iPg7lVYZ LhdA== X-Gm-Message-State: ALQs6tDZeiOMYHky1zJYEPcZK6/lCXPmlggokwzoRG0QVBKJYOc3r6+2 LyiEX5xyGwa20RrRT5CGstTVhM+B9pw= X-Google-Smtp-Source: AB8JxZoTzO8yCzm/IBpnUurUAZ04xZS/upPE5t2r6nVvmDsCNP35m41Sz+8sOtiNDfFKXqz9s8unWg== X-Received: by 10.28.136.149 with SMTP id k143mr6191086wmd.17.1525171649590; Tue, 01 May 2018 03:47:29 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id l69sm3649734wmb.30.2018.05.01.03.47.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 03:47:28 -0700 (PDT) From: luca.boccassi@gmail.com To: Andrew Rybchenko Cc: dpdk stable Date: Tue, 1 May 2018 11:44:59 +0100 Message-Id: <20180501104509.17238-36-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180501104509.17238-1-luca.boccassi@gmail.com> References: <20180501104509.17238-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'test/mempool: fix autotest retry' has been queued to LTS release 16.11.7 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: , X-List-Received-Date: Tue, 01 May 2018 10:47:30 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/03/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From b06cd33ae4bc15e729bdf193c1b63ba90b314560 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Wed, 25 Apr 2018 18:00:37 +0100 Subject: [PATCH] test/mempool: fix autotest retry [ upstream commit 2d645858a93e21a41e84928d4fb869318c3639a6 ] Single producer / single consumer mempool handle is stored in static variable and the mempool allocated if stored value is NULL. If the mempool is freed, NULL should be restored to make sure that the mempool is allocated once again next time when the test is run. Fixes: 8ef772aee072 ("app/test: rework mempool test") Signed-off-by: Andrew Rybchenko --- app/test/test_mempool.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 715b250c3..8fb13ce67 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -356,17 +356,17 @@ test_mempool_sp_sc(void) } if (rte_mempool_lookup("test_mempool_sp_sc") != mp_spsc) { printf("Cannot lookup mempool from its name\n"); - rte_mempool_free(mp_spsc); - RET_ERR(); + ret = -1; + goto err; } lcore_next = rte_get_next_lcore(lcore_id, 0, 1); if (lcore_next >= RTE_MAX_LCORE) { - rte_mempool_free(mp_spsc); - RET_ERR(); + ret = -1; + goto err; } if (rte_eal_lcore_role(lcore_next) != ROLE_RTE) { - rte_mempool_free(mp_spsc); - RET_ERR(); + ret = -1; + goto err; } rte_spinlock_init(&scsp_spinlock); memset(scsp_obj_table, 0, sizeof(scsp_obj_table)); @@ -377,7 +377,10 @@ test_mempool_sp_sc(void) if (rte_eal_wait_lcore(lcore_next) < 0) ret = -1; + +err: rte_mempool_free(mp_spsc); + mp_spsc = NULL; return ret; } -- 2.14.2