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 E54B1A0C47 for ; Mon, 26 Jul 2021 15:53:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D49D7410F0; Mon, 26 Jul 2021 15:53:56 +0200 (CEST) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 66B56410F0 for ; Mon, 26 Jul 2021 15:53:55 +0200 (CEST) Received: by mail-wr1-f54.google.com with SMTP id b7so11187383wri.8 for ; Mon, 26 Jul 2021 06:53:55 -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=DbUmvOANQjOPIGYOlCzjAgZHgQbt27Yi5tnV6Diagbg=; b=IaUzkxNkTN5IgUOmMgZNMSmRlGAxRSAZ+8KzHiYNQu7Mgzt6ffln04PEXVyCiK2pZh +Ys+Sp9ubUozgBUNbOt+K7fB0f14Y6umGsXdeKNCg4RqKVBuvXF+OT3QK/ErGTUqBXVA Gf2X5HSTmlQLc5YonoEzXl0ECABNTu7uezB2pQNWNKT7qODgt8rVZWDpV8GUcP11Vjvm Wjorp000EeQlD+pDktzEHfG0LKabGe41GGYzj9vZiZ/mwUowzFRuen9qgtBKDXCD4ZWf 7q0wleejrqfJl3CcR70Sim9/kRUlovF8FN8AJCxFun9zWEg/UUJXkMM6wo+51Y4xQXpo fxOg== 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=DbUmvOANQjOPIGYOlCzjAgZHgQbt27Yi5tnV6Diagbg=; b=RFHMNEwNShhFFLuujb2u6nGBm6kJtFnJBJbRr7umVmU3TGUTn7JTArsuGB7s8EDWU7 JC+5utvJ/lW7GjLmMERXW604UPyY/HR3lmZL7SISPPds6de+uENRpBoFC73RTWIvtGoQ viLFZ7S75ovcaYAu5gkbKic7G+cxIniYoDzwPtDMQtdYzJlo341HaBX43xhW029E01UT WWQ0wottYe3ycDisqYM+iC4AVQ6/zG4Hn47go2uA50kJBCvd4JwO63p7XYQqrDU7hZG2 vF3chfISUllJlfRRDAxAuKzIpoDtf2CV2eEutZsNTtxtakC/vLNd+gFozmFqbiTb89cx rCww== X-Gm-Message-State: AOAM531JRMvSbJhl7La2pLsprqA96g/BOdXM6DG0JQa1GDn11IzOo6qq 8UpxVrBsBFEPp4jBwKaGLu8= X-Google-Smtp-Source: ABdhPJywOCQihQl3ZMj5kV8ofMKg/d5NPYLL5e0oG5/B0yqwr+iQXc63JlFlWBoB7Ito0OGfF4xBtQ== X-Received: by 2002:a5d:490b:: with SMTP id x11mr9922997wrq.322.1627307635224; Mon, 26 Jul 2021 06:53:55 -0700 (PDT) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id u15sm4217046wmn.6.2021.07.26.06.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 06:53:54 -0700 (PDT) From: luca.boccassi@gmail.com To: Dana Vardi Cc: Liron Himi , dpdk stable Date: Mon, 26 Jul 2021 14:52:33 +0100 Message-Id: <20210726135322.149850-10-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210726135322.149850-1-luca.boccassi@gmail.com> References: <20210712130551.2462159-1-luca.boccassi@gmail.com> <20210726135322.149850-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/mvpp2: fix port speed overflow' has been queued to stable release 20.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 20.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 07/28/21. 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. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/9c8609a35611aa7f1a5b1cca2a15bb09b73c4f15 Thanks. Luca Boccassi --- >From 9c8609a35611aa7f1a5b1cca2a15bb09b73c4f15 Mon Sep 17 00:00:00 2001 From: Dana Vardi Date: Sun, 11 Jul 2021 16:11:43 +0300 Subject: [PATCH] net/mvpp2: fix port speed overflow [ upstream commit 8fa07a68a6f842aa81b8949976e8088e2b6318a3 ] ethtool_cmd_speed return uint32 and after the arithmetic operation in mrvl_get_max_rate func the result is out of range. Fixes: 429c394417 ("net/mvpp2: support traffic manager") Signed-off-by: Dana Vardi Reviewed-by: Liron Himi --- drivers/net/mvpp2/mrvl_tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mvpp2/mrvl_tm.c b/drivers/net/mvpp2/mrvl_tm.c index e98f576cfa..7e3c46f956 100644 --- a/drivers/net/mvpp2/mrvl_tm.c +++ b/drivers/net/mvpp2/mrvl_tm.c @@ -57,7 +57,7 @@ mrvl_get_max_rate(struct rte_eth_dev *dev, uint64_t *rate) close(fd); - *rate = ethtool_cmd_speed(&edata) * 1000 * 1000 / 8; + *rate = (uint64_t)ethtool_cmd_speed(&edata) * 1000 * 1000 / 8; return 0; } -- 2.30.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-07-26 13:53:16.451363970 +0100 +++ 0010-net-mvpp2-fix-port-speed-overflow.patch 2021-07-26 13:53:15.801291613 +0100 @@ -1 +1 @@ -From 8fa07a68a6f842aa81b8949976e8088e2b6318a3 Mon Sep 17 00:00:00 2001 +From 9c8609a35611aa7f1a5b1cca2a15bb09b73c4f15 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 8fa07a68a6f842aa81b8949976e8088e2b6318a3 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org