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 06680A0518 for ; Fri, 24 Jul 2020 14:10:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F23281C21A; Fri, 24 Jul 2020 14:10:33 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id 8CED11C227 for ; Fri, 24 Jul 2020 14:10:33 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id a6so8467928wmm.0 for ; Fri, 24 Jul 2020 05:10:33 -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 :mime-version:content-transfer-encoding; bh=uqjkDXZldxAIoz2hhPh5xbjCXKZ1XzcG5iLZesiHPk4=; b=iVOFRN7NEdTgrfmUxETWTp8zucVF5MI3CFyyxM++eGZGkRje7AFnmWgYjph6KsFBfo fr8BL2iInLf3F5JjUD92H2qeNalVCvXS76lg0ausr+mvqUHHjph0HBNjSBmYCvfGHnAi x0+c+ISdsmwwNFb+ixhhAxncnQIZqIO4+sziOKJ562GJtsoCOWLjTE4nOER71gCQuu5Y z25PIbmY0/LZU5ZMMRqfy4UQcqqBBL3VLkU8WIoiCImLzXDkRwbymvKUkOg0DghsUwad YQnoPd7y+lKWadpO7bCWQixKsxozwePPhMd6GS2kzygxaQnsyusEJuhnsSbImLPpx9Ax TjjA== 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:mime-version:content-transfer-encoding; bh=uqjkDXZldxAIoz2hhPh5xbjCXKZ1XzcG5iLZesiHPk4=; b=F2XigmLTOkzRoD7guK6/bCvGyf6IKSUUa7QNhbvxDSBzioiQBi/GNa8qo3jG4my+oj FDws7zwqm9d5uJyZTlFN30B13kz95glE4meAZzX1U0C+kOT3PzExZl3boTOuQp2qJUAq X2PbxRH8HBRjwCKWSCxayt5fspSTTGmWIZ2YQfeH7giI+wz5tazpD3/FeYvBmia+7fYU vLyl3p0fqqmJxqO5AsQJzg3N2lmdGP6uwiRE+/6DXK87445N7ace6epgki4OX2Fb+Loi Pp6tm1WxZgBRKsik9gXtxYxZWpCl/p3ZI22MY5q37Y9JJoRjO/cOvv8FcVOqmxcMjauV ZTnQ== X-Gm-Message-State: AOAM533nCzzOtvZ0FrzzHhBMcs0/JHSUBOinTSYSeIhfw1bLGcXYCKBd CwS0fZMAwQ6JnrzjkzY8y9Y/2OrB3N1mlw== X-Google-Smtp-Source: ABdhPJwBVVF+8Nd4Dvd2k3hdwY5Pji57UZaZcbZOoGcffMGUsjENTaRsMGja9VekHcD+jk4H0tbhmg== X-Received: by 2002:a1c:3dc3:: with SMTP id k186mr9013992wma.66.1595592633284; Fri, 24 Jul 2020 05:10:33 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id f15sm1053801wrx.91.2020.07.24.05.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:10:32 -0700 (PDT) From: luca.boccassi@gmail.com To: "Wei Hu (Xavier)" Cc: dpdk stable Date: Fri, 24 Jul 2020 12:59:52 +0100 Message-Id: <20200724120030.1863487-154-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724120030.1863487-1-luca.boccassi@gmail.com> References: <20200724120030.1863487-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bonding: fix error code on device creation' has been queued to stable release 19.11.4 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" Hi, FYI, your patch has been queued to stable release 19.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/26/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From cfc26947ca6bf20ff3b3ac1c62b5b55d27db0bb1 Mon Sep 17 00:00:00 2001 From: "Wei Hu (Xavier)" Date: Tue, 14 Jul 2020 16:19:43 +0800 Subject: [PATCH] net/bonding: fix error code on device creation [ upstream commit 2dd4f08540cc32cc1a62579d66d055327638ac92 ] Because the return value of rte_vdev_init() has multiple non-zero values, when rte_vdev_init() return non-zero in the rte_eth_bond_create() function, it should return the actual error code rather than -ENOMEM. Fixes: 68451eb6698c ("net/bonding: call through EAL on create/free") Signed-off-by: Wei Hu (Xavier) --- drivers/net/bonding/rte_eth_bond_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c index f38eb3b47..d77dc4096 100644 --- a/drivers/net/bonding/rte_eth_bond_api.c +++ b/drivers/net/bonding/rte_eth_bond_api.c @@ -167,7 +167,7 @@ rte_eth_bond_create(const char *name, uint8_t mode, uint8_t socket_id) ret = rte_vdev_init(name, devargs); if (ret) - return -ENOMEM; + return ret; ret = rte_eth_dev_get_port_by_name(name, &port_id); RTE_ASSERT(!ret); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-24 12:53:54.502992230 +0100 +++ 0154-net-bonding-fix-error-code-on-device-creation.patch 2020-07-24 12:53:48.519010782 +0100 @@ -1,15 +1,16 @@ -From 2dd4f08540cc32cc1a62579d66d055327638ac92 Mon Sep 17 00:00:00 2001 +From cfc26947ca6bf20ff3b3ac1c62b5b55d27db0bb1 Mon Sep 17 00:00:00 2001 From: "Wei Hu (Xavier)" Date: Tue, 14 Jul 2020 16:19:43 +0800 Subject: [PATCH] net/bonding: fix error code on device creation +[ upstream commit 2dd4f08540cc32cc1a62579d66d055327638ac92 ] + Because the return value of rte_vdev_init() has multiple non-zero values, when rte_vdev_init() return non-zero in the rte_eth_bond_create() function, it should return the actual error code rather than -ENOMEM. Fixes: 68451eb6698c ("net/bonding: call through EAL on create/free") -Cc: stable@dpdk.org Signed-off-by: Wei Hu (Xavier) ---