Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5958011pxb; Mon, 14 Feb 2022 11:41:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdifeW0k0Z4ZOkG3EhespXdQQdtpHQQZJzfELUB0mmUbpsDwvT25echK+hzwws9k4xrcS4 X-Received: by 2002:a62:1dc2:: with SMTP id d185mr215714pfd.23.1644867683384; Mon, 14 Feb 2022 11:41:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644867683; cv=none; d=google.com; s=arc-20160816; b=BaTsBf2bOw5wqPwVZhD1dNjb/gvSnNJqTlQzSBesTCt3//4iNG/vqPH0dXwFlIqE6U uuvdzRe8ZC7BzF6qf4u4YHYEZagxn1oxi67QPyflsjwzxKB3L2j/RQOZVocm1/22QtcG qF8HPAU6/fIHmNgRNr3ZP04A1O+OLCuReWxolwLx0Y0H5NN7OEahFOinmuq6V9dyjcz8 3eiutCmGFK57C1oPE1tCrkwlUSgW+SV7GARE2UawBUBqePQcin/ZoGOjQeZbA8oQAzgv ueczYBpp1sxKwbgmJxra4sdW6ca9GW40KZy+aiXLmA+VeWciGHG7kqxalQTtZTTU78IW FW7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=omnJTaa//NR6UonKguxTu+bYn7BtXbAJVfWpgrmJbZE=; b=BKgQzYM4R5PSSNNRSRxtV/d2t/3kug2bD+48j/j014utPKJC+Fzm4jp/rDwnTMgHA4 x6MOzXOSuIQRXT78f36ERuedkHNp2nJqW6fZGplN+oczDrGTfiPSu7RvZdN+coYShSEi ERO/7XMKSOq5YWl0yGm6hxSyacI4VxZULazHFdpG4ZWhthicSAu5AyDFCbpoj41o7X4D rU/Gv2OIkfD1W87bKLMmEGXJMZAuDKQ/DQC1/lzunmblYVbjGAqPJ9EMXfdRpO3n2LvL ynocieNHHURtULplrLb8mL0KzjeHPthXNZbEmu1CVEi1nj+X+BikpMLv0HwvPZQsL6TG z0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UbpaOhMQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id gj2si11580702pjb.63.2022.02.14.11.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:41:23 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UbpaOhMQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8955FEA37D; Mon, 14 Feb 2022 11:26:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344147AbiBNJ6u (ORCPT + 99 others); Mon, 14 Feb 2022 04:58:50 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343586AbiBNJxA (ORCPT ); Mon, 14 Feb 2022 04:53:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FF86D95E; Mon, 14 Feb 2022 01:43:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1133061236; Mon, 14 Feb 2022 09:43:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1040C340E9; Mon, 14 Feb 2022 09:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831827; bh=wCbd00afu2GJSkMEEuQkkZmfg2byA3jBt0zqXmqLULM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UbpaOhMQxF9ywKWDJpd04lI57sFo9Ra5LD3WC/LFpJtzKM33sz/bX04JE6YGndkNZ Bj+EUVnFmXh6KpY1nMGDcQV8r1v+iPgiboUs7u2sMvG0yMY2/fBrsAxKC4+J/qFn0B uXOfjSfg0DZ5ex0WseqU4yXTUxPpHTCzrRd3sfVk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mahesh Bandewar , Jay Vosburgh , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.10 068/116] bonding: pair enable_port with slave_arr_updates Date: Mon, 14 Feb 2022 10:26:07 +0100 Message-Id: <20220214092501.094608414@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mahesh Bandewar [ Upstream commit 23de0d7b6f0e3f9a6283a882594c479949da1120 ] When 803.2ad mode enables a participating port, it should update the slave-array. I have observed that the member links are participating and are part of the active aggregator while the traffic is egressing via only one member link (in a case where two links are participating). Via kprobes I discovered that slave-arr has only one link added while the other participating link wasn't part of the slave-arr. I couldn't see what caused that situation but the simple code-walk through provided me hints that the enable_port wasn't always associated with the slave-array update. Fixes: ee6377147409 ("bonding: Simplify the xmit function for modes that use xmit_hash") Signed-off-by: Mahesh Bandewar Acked-by: Jay Vosburgh Link: https://lore.kernel.org/r/20220207222901.1795287-1-maheshb@google.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/bonding/bond_3ad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index aa001b16765ae..ab8c833411654 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c @@ -1003,8 +1003,8 @@ static void ad_mux_machine(struct port *port, bool *update_slave_arr) if (port->aggregator && port->aggregator->is_active && !__port_is_enabled(port)) { - __enable_port(port); + *update_slave_arr = true; } } break; @@ -1760,6 +1760,7 @@ static void ad_agg_selection_logic(struct aggregator *agg, port = port->next_port_in_aggregator) { __enable_port(port); } + *update_slave_arr = true; } } -- 2.34.1