From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 83418A0C41; Sat, 4 Dec 2021 02:06:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BBAA426EF; Sat, 4 Dec 2021 02:06:01 +0100 (CET) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mails.dpdk.org (Postfix) with ESMTP id EBBB34014F for ; Sat, 4 Dec 2021 02:05:59 +0100 (CET) Received: by mail-lj1-f182.google.com with SMTP id u22so9356793lju.7 for ; Fri, 03 Dec 2021 17:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zsi/BZaVfQqkIk37+pqiZ7MU93m54Hk63zlx/OvXkkg=; b=qS7/37PBh/0WmIghUu1EZ/FXnLuJ0CPS/TugAmmm16RG4O/A7wg4+NSr1i8sDWIcMm 4GJslSAxzwRYjLN5RCjEUhVmkUH4b/yOzOqE2+bYlGPEpXIShvGltnzM4DXn8Bjvh4iD P0hN4T5EoF4QmS3AnUA2La7PSYgWLvl+Emw5na1V8UpSiJhFkiGHjJQExtXdYJdDI7sQ Ok7W7x9WpopiXtKBo6PnSbCq2X55/6f1g63bR5r4SyWbvlcZkhIMWKucZp6/rivD2R4r KvRiokjCgRn2jPP5y1ewj+isMIxqZPQnkcmQvqDmKx2aB+xdsxpNg2nZsIHRKejW9zcK /7ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zsi/BZaVfQqkIk37+pqiZ7MU93m54Hk63zlx/OvXkkg=; b=Q+En/usC0SsJ7Z3yykJ3Cp77CMjwNKIoukqLaGrRxg6fObVhEpYLtloNYGZcUd/89t qBXA3VF5oMZiF8SuvZzVfzL7XFgWroOZNufLzkuj54sQ4Hrig5Rp582rJvDaQsLjsCcz MEtXd7tikc41PGqrpEvaRkZGHkiAPnIORiv8nWd7/q9g42Q4ni1TSsdO+NlY22PcMqM1 X9563Nhs9Qux/5dglLuRHtp8ILJVXpOLiPbETUC3ULIk9aZLI/rQ0wvGHFx1fs2A3nUp 4K/LSTcAceh+C3hTajG5KJPKqt2gqfagjiTVlR2NLDDAtU/5hYPdRzHqiBIQ572gzjwB pqUg== X-Gm-Message-State: AOAM532u3O1Awhpc37qI196K7tRef2H+dkMSKx4hwfUPag1Acx0aaeQc 0LUy0k3n5EE+PVBRSi505W7rrBhX/V4= X-Google-Smtp-Source: ABdhPJyavk/HbA2HbrN82NlMBO3LKzeYrlc/YGf3rUMq+EF4aumdzo2qIJn7M50tdHUUlbjBXA+QYA== X-Received: by 2002:a2e:2a41:: with SMTP id q62mr20407377ljq.515.1638579959265; Fri, 03 Dec 2021 17:05:59 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id t7sm609255lfl.260.2021.12.03.17.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 17:05:58 -0800 (PST) Date: Sat, 4 Dec 2021 04:05:58 +0300 From: Dmitry Kozlyuk To: Jie Zhou , talshn@nvidia.com Cc: dev@dpdk.org, roretzla@microsoft.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, thomas@monjalon.net, aconole@redhat.com Subject: Re: [PATCH v11 3/9] app/test: fix incorrect errno variable Message-ID: <20211204040558.36647640@sovereign> In-Reply-To: <1638490007-9939-4-git-send-email-jizh@linux.microsoft.com> References: <1638384245-12587-1-git-send-email-jizh@linux.microsoft.com> <1638490007-9939-1-git-send-email-jizh@linux.microsoft.com> <1638490007-9939-4-git-send-email-jizh@linux.microsoft.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 2021-12-02 16:06 (UTC-0800), Jie Zhou: > Fix incorrect errno variable used in memory autotest. > Use rte_errno instead. > > Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD") > Cc: bruce.richardson@intel.com > > Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk > --- > app/test/test_memory.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/app/test/test_memory.c b/app/test/test_memory.c > index dbf6871e71..140ac3f3cf 100644 > --- a/app/test/test_memory.c > +++ b/app/test/test_memory.c > @@ -63,7 +63,7 @@ check_seg_fds(const struct rte_memseg_list *msl, const struct rte_memseg *ms, > /* we're able to get memseg fd - try getting its offset */ > ret = rte_memseg_get_fd_offset_thread_unsafe(ms, &offset); > if (ret < 0) { > - if (errno == ENOTSUP) > + if (rte_errno == ENOTSUP) > return 1; > return -1; > }