Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6020129pxb; Mon, 14 Feb 2022 13:17:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtALFiAen+PO4lnMuimSe1DvZizHYt81vQQ6zFYaN+sXQFRjmrCdLpycugvtn0tDrLov3y X-Received: by 2002:a63:6a87:: with SMTP id f129mr837209pgc.0.1644873457496; Mon, 14 Feb 2022 13:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873457; cv=none; d=google.com; s=arc-20160816; b=uRXfn3tbPTcJvH5HMV65v5TNYbSDrNa+nwDg8IhBZZyyQjPpdegMf/sOaD22K8otJJ 7gzVLzc0ARiIvMoh+qbeM4YNrsJDy3UhImFbuVdv/BYe3rdRHpmzncHtjbgN6b3X7039 klaONUMLZG8lO7kvOcETVgje9kBPvBWc15fYy5y+Iv74RTQQYQwPj14+hRBcJuksJI31 a75ukArhTADicAAAh4wrX4nMEAOqG9bpdjYUA/eeF+Z+d+Oa59ENPXJ0HG6tD7/nFho2 e6kTcBiBEp3Fy7AMvQ/kVtiFyEanW2aTR7iZ6Cvvsn1MIKt7Xr6IH24vFdnCqnpjQPrH k4zg== 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=sBGuv40VUZSoyi0eV+ax6+Iue6w/rvmB6pu3nfFT7xI=; b=zu1dM1uPtx9xYIh9adktnLF8RI7+uyl9J5FNytp3Os1aP8VNolQ23HmA3JeTwjfcJo aCA3+JNZdvB8L74Wgj6C+481PTgmpyG18MAARD9WLnjijEqFAKivWuPfZHXn/jehOyqI hUzxecbzwpsGBBfC6JED2HpmK85iAbXhvqB+YyfqMMFs//m86hTxCvgIMXihzoQLvNhZ tWXw6ECdFD3RvfyslDh7RsCZLFUXf1RvWh4TSjoPgSKxlXB6ZWRhF+aowhCQaxHQFP+L E04zTV6ProUzE6xuK7rgV2E3gKra4pPWsiu7DnTAwrLyXUF8iHdk5oCxUUU9k/FZAPun zOTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CM786ksi; 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 c1si35116479pfv.225.2022.02.14.13.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:17:37 -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=CM786ksi; 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 20468228C87; Mon, 14 Feb 2022 12:36:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243707AbiBNJcQ (ORCPT + 99 others); Mon, 14 Feb 2022 04:32:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243533AbiBNJcA (ORCPT ); Mon, 14 Feb 2022 04:32:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA941AD9F; Mon, 14 Feb 2022 01:30:39 -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 B7D2160F8D; Mon, 14 Feb 2022 09:30:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98830C340F2; Mon, 14 Feb 2022 09:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831038; bh=l0212FSHtUxE+34kUIAZLJhq/HpoQd/R+RJu5Jxqgx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CM786ksiRBjsaKxlLQvQ9A9ukZRnc6OJRTgK2DM9WZE+sy3caz813ozoXpGSYeRX0 x/XNqgbDVBw4wyEW3m2s3L42angpeo55sW1kTt5YfeAyY+GQncyizdEMz/I7m25uoH uFOTsrBnWb/Mmsi3YQyhpzeMrOelOiduKqZdQ8cM= 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 4.14 23/44] bonding: pair enable_port with slave_arr_updates Date: Mon, 14 Feb 2022 10:25:46 +0100 Message-Id: <20220214092448.662740295@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092447.897544753@linuxfoundation.org> References: <20220214092447.897544753@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 93dfcef8afc4b..035923876c617 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c @@ -1012,8 +1012,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