From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id B5FF6F64 for ; Mon, 30 Apr 2018 16:44:39 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id a67so6022577wmf.3 for ; Mon, 30 Apr 2018 07:44:39 -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=2N4YVzH73KG/DX2j6zSZ/cep11wEAeUHb65nk5KCeq0=; b=IawKqG4wn2GqmUmtzXN+jRGMwTdaemVtlWkndH796Rjiq6DUShp8lU8tojtawFFHEx kRfAkpg0JOYpNHTZRjI1yN48m2bK07Rqvyfa6huv0szSDgvmnMh7EpS/NXxAZzy4Cne/ 5z563lsouG2EVzjheC+56VKsjX3VCuYG0Lbwmz5oMVNImTBk6bsXHPWP+Vhmrbf3DG9K ChEtRI//p2EkVgLIMAXBRk6rHVUJnM7V9O7LC28a069XbUAU4mH4rmso1i6DhlF2w85w YR4+Rzffc8PrAKlqG/hKMkn2DPxRT/zniFuZ0rR6xKCbZj+F1VVGbnFB0JcNmydzrGui Y1uA== 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=2N4YVzH73KG/DX2j6zSZ/cep11wEAeUHb65nk5KCeq0=; b=lkWePxtwSD3vz8TmnzmV5PCxnxVgWhQsGk5zjNbiYl1LB45WAvKXZP3ut/J3sCV4tT d1v8xJ+mUMuQgcQpUlukLcBV4++S+duUVMLRDFYY8Ga1dFHQiu0qA0ltVyEJjHj3Oiql pu8qM+KnQn0TIV57EqXgjlJiK3UpM0zLFmC42AhqJnw5zrZ+GzVMxnUIp7X/U70gEbLX LaJJaC37TQdBm2xl3xCDx80Y2HXhCvOSnrx/dA1YjuCXEWu6C3/G3BzgrRgudgDTN0Pn 6bNzp6AnQ6DiK1O1I5qCV8BE4axZ0ST1eHJBqlfpGJS/OwysI4C7aNBeCjcWhZxA5VFs 9vUA== X-Gm-Message-State: ALQs6tA4PzzMTX3Xuhc7vBvTfgp8GqZl7Yc93i2iZjoydXIlTw6jxfUf BR8BT2kJ4GQJuJvjjQxX8NB5nGomHo4= X-Google-Smtp-Source: AB8JxZp8Z2f2OGnvq1nVj+ZiHW6wDn9l1Kh0b90S5e+xdwIJXJyJQ80bQjWpX7cpsoysQu1teNtIvw== X-Received: by 10.28.100.137 with SMTP id y131mr7415441wmb.82.1525099479334; Mon, 30 Apr 2018 07:44:39 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id z11-v6sm7497148wre.15.2018.04.30.07.44.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:44:38 -0700 (PDT) From: luca.boccassi@gmail.com To: Phil Yang Cc: dpdk stable Date: Mon, 30 Apr 2018 15:41:39 +0100 Message-Id: <20180430144223.18657-84-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'test: fix memory flags test for low NUMA nodes number' has been queued to stable release 18.02.2 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: Mon, 30 Apr 2018 14:44:39 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 31991b17caadc33cd528d2e9c6ee54b03846beef Mon Sep 17 00:00:00 2001 From: Phil Yang Date: Tue, 6 Feb 2018 10:21:38 +0800 Subject: [PATCH] test: fix memory flags test for low NUMA nodes number [ upstream commit 896af46bd1ade6d8d1f452f03c6e08e0965d7ef9 ] Since RTE_MAX_NUMA_NODES is configurable, the existing socket number could greater than RTE_MAX_NUMA_NODES. Optimize test case to cover this situation.(i.e RTE_MAX_NUMA_NODES=1) Fixes: 45f1b6e8680a ("app: add new tests on eal flags") Signed-off-by: Phil Yang --- test/test/test_eal_flags.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test/test_eal_flags.c b/test/test/test_eal_flags.c index 37c42efe8..7df0b8f1e 100644 --- a/test/test/test_eal_flags.c +++ b/test/test/test_eal_flags.c @@ -33,7 +33,7 @@ #define memtest "memtest" #define memtest1 "memtest1" #define memtest2 "memtest2" -#define SOCKET_MEM_STRLEN (RTE_MAX_NUMA_NODES * 10) +#define SOCKET_MEM_STRLEN (RTE_MAX_NUMA_NODES * 20) #define launch_proc(ARGV) process_dup(ARGV, \ sizeof(ARGV)/(sizeof(ARGV[0])), __func__) @@ -1138,10 +1138,11 @@ test_memory_flags(void) #ifdef RTE_EXEC_ENV_BSDAPP int i, num_sockets = 1; #else - int i, num_sockets = get_number_of_sockets(); + int i, num_sockets = RTE_MIN(get_number_of_sockets(), + RTE_MAX_NUMA_NODES); #endif - if (num_sockets <= 0 || num_sockets > RTE_MAX_NUMA_NODES) { + if (num_sockets <= 0) { printf("Error - cannot get number of sockets!\n"); return -1; } -- 2.14.2