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 7D24BA04B5 for ; Tue, 3 Dec 2019 19:27:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70E8A91; Tue, 3 Dec 2019 19:27:42 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 35F2D1F5 for ; Tue, 3 Dec 2019 19:27:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575397659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=spfbKSX9tVBBYBQ9uC+WxarllbW4LUlnQmHXLv6TKzI=; b=DcvJLVfXXcI+xoFe0sOPlAdPYVn8HMsjNDSK7yawqCz3NrgdqHwFceri4wONfs79tsify9 fNHN4q2VSOq5TWcZleV/Pu72zWzXbRIzHR3hJn53ypa5qL7d0p9GlBrIBbMk73I1h9oAck qeBHuOfgLmPtmTkGJzgkav+8f7BGx7A= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-345-1jW4W1JpOse23pZ12WUMhQ-1; Tue, 03 Dec 2019 13:27:36 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6AD128017CC; Tue, 3 Dec 2019 18:27:35 +0000 (UTC) Received: from rh.redhat.com (ovpn-117-10.ams2.redhat.com [10.36.117.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 20A685C554; Tue, 3 Dec 2019 18:27:33 +0000 (UTC) From: Kevin Traynor To: Igor Romanov Cc: Andrew Rybchenko , Chas Williams , dpdk stable Date: Tue, 3 Dec 2019 18:26:13 +0000 Message-Id: <20191203182714.17297-4-ktraynor@redhat.com> In-Reply-To: <20191203182714.17297-1-ktraynor@redhat.com> References: <20191203182714.17297-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: 1jW4W1JpOse23pZ12WUMhQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'net/bonding: fix link speed update in broadcast mode' has been queued to LTS release 18.11.6 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 LTS release 18.11.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/19. 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 rebasi= ng (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/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/fa811f63aaaeab5675= 28bb334eef503f8ef06f5a Thanks. Kevin. --- >From fa811f63aaaeab567528bb334eef503f8ef06f5a Mon Sep 17 00:00:00 2001 From: Igor Romanov Date: Tue, 10 Sep 2019 09:25:41 +0100 Subject: [PATCH] net/bonding: fix link speed update in broadcast mode [ upstream commit db3216e76609647ce8dc256d478c8cc7095a23d4 ] Fix the issue that the link speed of the bond device was set to the link speed of the first active slave in broadcast mode. Set the link speed of the bond device to the minimum value across all of the slaves in that case. Fixes: deba8a2f8b0b ("net/bonding: fix link properties management") Signed-off-by: Igor Romanov Signed-off-by: Andrew Rybchenko Acked-by: Chas Williams --- drivers/net/bonding/rte_eth_bond_pmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/r= te_eth_bond_pmd.c index 2fc19fbb1..c1cbf6258 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -2347,6 +2347,6 @@ bond_ethdev_link_update(struct rte_eth_dev *ethdev, i= nt wait_to_complete) =09=09 * greater than this are attempted =09=09 */ -=09=09for (idx =3D 1; idx < bond_ctx->active_slave_count; idx++) { -=09=09=09link_update(bond_ctx->active_slaves[0],=09&slave_link); +=09=09for (idx =3D 0; idx < bond_ctx->active_slave_count; idx++) { +=09=09=09link_update(bond_ctx->active_slaves[idx], &slave_link); =20 =09=09=09if (slave_link.link_speed < --=20 2.21.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092019-12-03 17:29:52.026314301 +0000 +++ 0004-net-bonding-fix-link-speed-update-in-broadcast-mode.patch=092019-1= 2-03 17:29:51.678751452 +0000 @@ -1 +1 @@ -From db3216e76609647ce8dc256d478c8cc7095a23d4 Mon Sep 17 00:00:00 2001 +From fa811f63aaaeab567528bb334eef503f8ef06f5a Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit db3216e76609647ce8dc256d478c8cc7095a23d4 ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index 5ff9fcbaf..4c517e676 100644 +index 2fc19fbb1..c1cbf6258 100644 @@ -26 +27 @@ -@@ -2396,6 +2396,6 @@ bond_ethdev_link_update(struct rte_eth_dev *ethdev, = int wait_to_complete) +@@ -2347,6 +2347,6 @@ bond_ethdev_link_update(struct rte_eth_dev *ethdev, = int wait_to_complete)