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 3BADAA0093 for ; Tue, 19 May 2020 14:59:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 224AB1D5FB; Tue, 19 May 2020 14:59:28 +0200 (CEST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 72D531C1E4 for ; Tue, 19 May 2020 14:59:27 +0200 (CEST) Received: by mail-wr1-f65.google.com with SMTP id l18so15808536wrn.6 for ; Tue, 19 May 2020 05:59:27 -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=9lFOZpax/q4j2ND11Z2aDXQ5npCWwZJOXBL0BJR+MhI=; b=GQjfik3wi16Wch0/zeStNpAog+/5xT09l7s8xMaE3fcMLpsamHHDN98CPzUVbbq3Yw Cun2nQSrLO1n7J7KhSweLMI5pq8WQrpGmbWDV+PJtGzR9um4j9lKXUsrUjjrhYRgyRX2 esiVtnKN+Dhz7EeWZZJpSw2hJknpS+C0AySYkSTg9E8ShkPPIAzmOeotbj2XRbbLqNPY MEXJxvmfgwJbi2BXSdlyYTDn9oQuh8s84K/7cmyolDYusuQOtT6yJVyOQwrGUVbaClX0 pbm3sMHW3Y0/AagycHh8WMRwH3fgGtzl2IlWGhQ7jxlq7UajxXGqbkrpeZ0kO5PaowqA /p3A== 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=9lFOZpax/q4j2ND11Z2aDXQ5npCWwZJOXBL0BJR+MhI=; b=LfL79HDXvGzAVzdhCOwtPaZuX8wsQTZx7zwydSV9W1rfBMQnfIm4xRhrC8c0X87Bnl gBIb4m7L4xC8hee7sb+DHAjJaabih0AhAQkVdMmCTgNhbAzCyQeORN7xulMF12bDxBcR dt2pQJFLX58LJiEn5bdQUgrSCXOADch+5kHlIL4RNmvZztO05cIfhKY1ELnv+gdrkR59 LLYmg/Y+9TEzkiOrTWSlemPneR6JdHIdfIWkziOkG+91vUM30wF7cglC6vwCTtYENoIg 2mrUNeULAzvZI0qp1bEifltd1rjmHoYJ5PdfZbwzCR6SdflBxaR58QyP1oGu7NyIkfLT wjpw== X-Gm-Message-State: AOAM531M8/Tk3HVY6NEejok8Ib7VsdjJXPEPjabHp0qgtaSIrIB4/e4x kDpQAYl8yBm2yHgOgWKiFXk= X-Google-Smtp-Source: ABdhPJzuSuxlhNQ2L8CHxoKbxru/OymU1P7LR9r2OskoeA2H4yZ+o9kS0BkGu5S98S0tirCtI1qyTQ== X-Received: by 2002:adf:bc41:: with SMTP id a1mr27586042wrh.302.1589893167037; Tue, 19 May 2020 05:59:27 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id z7sm20987360wrl.88.2020.05.19.05.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 05:59:26 -0700 (PDT) From: luca.boccassi@gmail.com To: Kevin Traynor Cc: Ferruh Yigit , dpdk stable Date: Tue, 19 May 2020 13:53:44 +0100 Message-Id: <20200519125804.104349-34-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519125804.104349-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hinic: fix snprintf length of cable info' has been queued to stable release 19.11.3 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.3 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/21/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 d16cceef30f72e805eee7b4191b4900020740503 Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Fri, 6 Mar 2020 12:06:51 +0000 Subject: [PATCH] net/hinic: fix snprintf length of cable info [ upstream commit 9c84acab47e8eee2736b70edc54f36bb1bc17c57 ] Correct length and remove unnecessary brackets. Fixes: d9ce1917941c ("net/hinic/base: add hardware operation") Signed-off-by: Kevin Traynor Reviewed-by: Ferruh Yigit --- drivers/net/hinic/base/hinic_pmd_hwdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hinic/base/hinic_pmd_hwdev.c b/drivers/net/hinic/base/hinic_pmd_hwdev.c index 8b16897ade..b6c821a2ad 100644 --- a/drivers/net/hinic/base/hinic_pmd_hwdev.c +++ b/drivers/net/hinic/base/hinic_pmd_hwdev.c @@ -1390,7 +1390,7 @@ static void print_cable_info(struct hinic_link_info *info) } memcpy(tmp_vendor, info->vendor_name, sizeof(info->vendor_name)); - snprintf(tmp_str, (sizeof(tmp_str) - 1), + snprintf(tmp_str, sizeof(tmp_str), "Vendor: %s, %s, %s, length: %um, max_speed: %uGbps", tmp_vendor, info->sfp_type ? "SFP" : "QSFP", port_type, info->cable_length, info->cable_max_speed); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 13:56:20.225173105 +0100 +++ 0034-net-hinic-fix-snprintf-length-of-cable-info.patch 2020-05-19 13:56:18.227501963 +0100 @@ -1,12 +1,13 @@ -From 9c84acab47e8eee2736b70edc54f36bb1bc17c57 Mon Sep 17 00:00:00 2001 +From d16cceef30f72e805eee7b4191b4900020740503 Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Fri, 6 Mar 2020 12:06:51 +0000 Subject: [PATCH] net/hinic: fix snprintf length of cable info +[ upstream commit 9c84acab47e8eee2736b70edc54f36bb1bc17c57 ] + Correct length and remove unnecessary brackets. Fixes: d9ce1917941c ("net/hinic/base: add hardware operation") -Cc: stable@dpdk.org Signed-off-by: Kevin Traynor Reviewed-by: Ferruh Yigit