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 89BA9A0487 for ; Fri, 5 Jul 2019 14:18:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5B5681BE92; Fri, 5 Jul 2019 14:18:55 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id B9C2E1BE67; Fri, 5 Jul 2019 14:18:53 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 99A11B80063; Fri, 5 Jul 2019 12:18:52 +0000 (UTC) Received: from ocex03.SolarFlarecom.com (10.20.40.36) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 5 Jul 2019 05:18:16 -0700 Received: from opal.uk.solarflarecom.com (10.17.10.1) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Fri, 5 Jul 2019 05:18:15 -0700 Received: from ukv-loginhost.uk.solarflarecom.com (ukv-loginhost.uk.solarflarecom.com [10.17.10.39]) by opal.uk.solarflarecom.com (8.13.8/8.13.8) with ESMTP id x65CIEdG019522; Fri, 5 Jul 2019 13:18:14 +0100 Received: from ukv-loginhost.uk.solarflarecom.com (localhost [127.0.0.1]) by ukv-loginhost.uk.solarflarecom.com (Postfix) with ESMTP id 93CCC1613C2; Fri, 5 Jul 2019 13:18:14 +0100 (BST) From: Andrew Rybchenko To: Radu Nicolau , Akhil Goyal CC: , Dilshod Urazov , Date: Fri, 5 Jul 2019 13:18:09 +0100 Message-ID: <1562329089-4354-1-git-send-email-arybchenko@solarflare.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24740.005 X-TM-AS-Result: No-3.297600-4.000000-10 X-TMASE-MatchedRID: g92hhHfYk6iKQsBMcfAIqXycvC6I0dJIS1zwNuiBtITfUZT83lbkEFJd N0iGOn3tVHxr/xy4MXOAMuqetGVetiVvu9chHp+mavP8b9lJtWr6C0ePs7A07X8VRCNw0kiDvzy 3l3ALLrcvPJMp8mqky+SJFiyquNaiPlz4W8SlxkMAkemtIeF8V3O+a4lfB+68fbjsQcn0q1T6rJ pHHAIqTmNn8n5rhB552kC7SwvGlKhDwb7Jglhh1lFkOwaJdCKgviPEqcclEtzAvpLE+mvX8g== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.297600-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24740.005 X-MDID: 1562329133-EZTlHhcn6REH Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix to set positive rte_errno X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Dilshod Urazov Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Cc: stable@dpdk.org Signed-off-by: Dilshod Urazov Signed-off-by: Andrew Rybchenko --- examples/ipsec-secgw/sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 8d47d1def..8044066a8 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -739,7 +739,7 @@ sa_create(const char *name, int32_t socket_id) RTE_MEMZONE_1GB | RTE_MEMZONE_SIZE_HINT_ONLY); if (mz == NULL) { printf("Failed to allocate SA DB memory\n"); - rte_errno = -ENOMEM; + rte_errno = ENOMEM; return NULL; } -- 2.17.1