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 8AEECA0518 for ; Fri, 24 Jul 2020 14:02:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 844651BFE3; Fri, 24 Jul 2020 14:02:10 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id AFC2B1BFE3 for ; Fri, 24 Jul 2020 14:02:08 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id 9so7720616wmj.5 for ; Fri, 24 Jul 2020 05:02:08 -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=MX1xNHYiRuGR9shcM1cHiGWhHWomNaIIVVav1mNc5Pk=; b=li6RSbX3sAy/M34V/LWl9TrQ+kP+EWIL9fnptPrRlijYG02aCXllrb5p2oG6t1kBiY HdoYDjSjV4SnER56kzni6va9b7ZJ8qaGo2a3zqowaxui7QnQnYnfcnu0ijsnWUnjbIu5 yeB13HR26bWb7et/9VohDFqjEmQT4aB6toJsdrBLU0nFC9A8Fe6CfJmo5Z5JK1Mw/o++ f4dSh5FTbkAIJEq5ZCJb4iEJDitw4wp8O4LsxclwkM5fDnynJVW5VEN/yDHaH2IpssnH ME71MbJ/M0UoY6HObj7FPi1OJhLJe7Gf/7UFqit+eG5E2eEF0ssycZXxyZb36k29xvEG 7W0Q== 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=MX1xNHYiRuGR9shcM1cHiGWhHWomNaIIVVav1mNc5Pk=; b=SSXF6g34/X9KL5NWLeIfkWOrUXVDyr58lyzp7oZjF4VEJxtN5PhOAu6/4tCZAuCFyI Qc09Vf5gJ3G0KC5FA3WJqjTVkiyAT5vh5Ak5KF72ckUlJg0ySuTJFHHKRAX8vQ3lu7FU ItrOsssrI11+NnQTapoUg0V0k8OCgJTFGf3vwGBw5TXYmlfu8hII/BhVaurw9zsW9Vwc QyD3OU8k8FlJe9OLR46tFvHLD2mgIp/1ESS7FtEwE470fEKE9UJhS6njQHOqUv+U5S2M 2gOfLYZYc14dcpp/ws2YHWO2/6q7DEKCaHrGA1NCNFh2htCA7WiWuIaOT5cMN94s2ea5 5Acg== X-Gm-Message-State: AOAM530aBXit52vRkk5BkFU6ZANtA2C5UMRcRU8OF0m1KcmGgg7TjgHA T2ryO+F18ye8Hv2iscDSHyw= X-Google-Smtp-Source: ABdhPJxoZU0/9JHjMVv234jafJ7UIP2KsGZHi3PQoRlTAmHo5wduabEGJyTJx47NmtnXoZzK1/IHgg== X-Received: by 2002:a1c:6106:: with SMTP id v6mr8217215wmb.178.1595592128404; Fri, 24 Jul 2020 05:02:08 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id c194sm7345454wme.8.2020.07.24.05.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:02:07 -0700 (PDT) From: luca.boccassi@gmail.com To: "Wei Hu (Xavier)" Cc: dpdk stable Date: Fri, 24 Jul 2020 12:57:45 +0100 Message-Id: <20200724120030.1863487-27-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/hns3: fix flow director error message' 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 2118606fd3f11cf4778b312e08faac0549db0401 Mon Sep 17 00:00:00 2001 From: "Wei Hu (Xavier)" Date: Tue, 9 Jun 2020 16:44:14 +0800 Subject: [PATCH] net/hns3: fix flow director error message [ upstream commit 41b966ffb4f70792d8cd851173eab15bca183a7c ] There is a coverity defect related "Argument cannot be negative". This patch fixes it by passing '-ret' to the function strerror() when ret is negative. Coverity issue: 349933 Fixes: fcba820d9b9e ("net/hns3: support flow director") Signed-off-by: Wei Hu (Xavier) --- drivers/net/hns3/hns3_fdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index 53c6448cd..79f3f0d14 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -893,7 +893,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw, if (ret < 0) { rte_spinlock_unlock(&fdir_info->flows_lock); hns3_err(hw, "Hash table full? err:%d(%s)!", ret, - strerror(ret)); + strerror(-ret)); return ret; } -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-24 12:53:49.656840290 +0100 +++ 0027-net-hns3-fix-flow-director-error-message.patch 2020-07-24 12:53:48.215005118 +0100 @@ -1,8 +1,10 @@ -From 41b966ffb4f70792d8cd851173eab15bca183a7c Mon Sep 17 00:00:00 2001 +From 2118606fd3f11cf4778b312e08faac0549db0401 Mon Sep 17 00:00:00 2001 From: "Wei Hu (Xavier)" Date: Tue, 9 Jun 2020 16:44:14 +0800 Subject: [PATCH] net/hns3: fix flow director error message +[ upstream commit 41b966ffb4f70792d8cd851173eab15bca183a7c ] + There is a coverity defect related "Argument cannot be negative". This patch fixes it by passing '-ret' to the function strerror() when @@ -10,7 +12,6 @@ Coverity issue: 349933 Fixes: fcba820d9b9e ("net/hns3: support flow director") -Cc: stable@dpdk.org Signed-off-by: Wei Hu (Xavier) --- @@ -18,7 +19,7 @@ 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c -index 4c5928ffc..7bc5bf831 100644 +index 53c6448cd..79f3f0d14 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -893,7 +893,7 @@ static int hns3_insert_fdir_filter(struct hns3_hw *hw,