Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp613350rdb; Thu, 21 Dec 2023 22:28:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGI8enFjx6BhxLXre8xN3WLS3dTio2F535n2kzrH575KSct3WeQa9eGAGWhcrdBY4m1n2/ X-Received: by 2002:a17:906:3f19:b0:9d4:2080:61dc with SMTP id c25-20020a1709063f1900b009d4208061dcmr444051ejj.22.1703226504564; Thu, 21 Dec 2023 22:28:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703226504; cv=none; d=google.com; s=arc-20160816; b=TYh2QyNUblfuuKNLR8RiaqN7RwFtI7p2I+R5y/9+V14OV69PdOZWhGE0+r5cc8byt3 ldsTc6ZrXzz0kfSbj+pl36rZ8wwsVWOyAN6hmTsPjtJOSgrhxqTpv97zPzZmnNbffL1Y xH1PhSfvcRVqUx7MLcZ5gXQWxgyK6i0QoCcYDjcTTnR+ufH6Zi67WTvDgGG7uSKJzcFf jkM0KZsJvMjQZUKY6VkTnA3FArB8TvNVB3tasulNBNJhARq7MVXt1oVBX/QnFlsmHqz6 jTtmol6/WlF/D1PCPXntPRyAOTAmNmCxUuvA+g9J8HXSY9HEbKzM+GABo93EP+YgEIVp prrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature:dkim-filter; bh=BIetNQN2KFwX2v/ecFDd6ZNUmdmAnY6xrpyCv7uD/10=; fh=fzZicCV1pk5iExqt+59tdujIpEVuUbpK5rUzR0+SC2o=; b=SaTDcVu3CHZU++H50AaRJlyEmRyPht9S9rl8CWcjyksvC2q2mJwmV5W8rauS4Uy7tE jZW+eHnsmtXsYed7aHZQd2Bh0UJefJoAAYtYOHol2U2jlVElnwdg5MQNAkmlQJZ963m9 +PY11tHY7Zrm7AysmxsRmmPH77OZ0gBmuXnlIon0S+BSXwYcuxiK4puqVRBHX6wlce51 KbR2HHqiHqaNRGAzfJDycF0GTtGRieuXUmHW3YU4XBT9v601r2dNAPRhTPkBP6dS9KWQ E3DEsz/O5zDgkIqreyKysP7lHOBN2dqQqsXR3zpfS1kwcjqvb7syphRokY2/WK7wAppo WUNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@thedillows.org header.s=default header.b=dXH9kDqj; spf=pass (google.com: domain of linux-kernel+bounces-9405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thedillows.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lr27-20020a170906fb9b00b00a23328c2962si1483068ejb.534.2023.12.21.22.28.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 22:28:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@thedillows.org header.s=default header.b=dXH9kDqj; spf=pass (google.com: domain of linux-kernel+bounces-9405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9405-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=thedillows.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5471F1F261B8 for ; Fri, 22 Dec 2023 06:28:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5115C8E4; Fri, 22 Dec 2023 06:27:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thedillows.org header.i=@thedillows.org header.b="dXH9kDqj" X-Original-To: linux-kernel@vger.kernel.org Received: from voodoobox.net (matrix.voodoobox.net [172.105.149.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E76FCBA3F; Fri, 22 Dec 2023 06:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=thedillows.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thedillows.org Received: from [192.168.0.103] ([76.133.22.181]) (authenticated bits=0) by voodoobox.net (8.14.4/8.14.4) with ESMTP id 3BM5c2xW028689 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Dec 2023 00:38:03 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 voodoobox.net 3BM5c2xW028689 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thedillows.org; s=default; t=1703223485; bh=BIetNQN2KFwX2v/ecFDd6ZNUmdmAnY6xrpyCv7uD/10=; h=Subject:From:To:Cc:Date:In-Reply-To:From; b=dXH9kDqj/fJSNJGOFk6gsap67jxZdBObFWaMs4O/ltqiCfC4npBIDg3Gbz9+oCa5s tU5jSIYwT01Tu/OjaLWDv3TFIURpaAh1jkPPuzbp7IlQF9RKW78Zc9qCPubgq+WmZQ Iqt34FhRxIABWunyyVGh/pOYzdNaewaOX3qq3UwuplOrxiaKm5yY8vzNAIdtFGwM1O Z2TCwHH7/c73jk0kUPn0tj4SF0xv4iXgTAhhR4rvOwNUlZCgYCWQcjB8YtkGOthJaV p3piDiZTwQS6yj03wCmjOYgNdw3Z/9eN7jmH3vqqe7YP8owKSxJtTZ5jaMqho6fUy2 h2f3YWF6IQfwA== Message-ID: Subject: Re: [PATCH next] bonding: Extending LACP MUX State Machine to include a Collecting State. From: David Dillow To: jay.vosburgh@canonical.com Cc: aahila@google.com, andy@greyhouse.net, daniel@iogearbox.net, davem@davemloft.net, edumazet@google.com, herbert@gondor.apana.org.au, kuba@kernel.org, linux-kernel@vger.kernel.org, maheshb@google.com, martin.lau@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com Date: Thu, 21 Dec 2023 21:38:01 -0800 In-Reply-To: <21529.1703184528@famine> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 > I haven't read the patch in detail yet, but my overall question > is: why do we need this? This adds significant complexity to the > state machine logic. What real problem is this solving, i.e., what > examples do you have of systems where a port is "in a state where > it can receive incoming packets while not still distributing"? Any time we add a new link to an aggregator, or the bond selects a new aggegrator based on the selection policy, there is currently a race where we start distributing traffic before our partner (usually a switch) is ready to start collecting it, leading to dropped packets if we're running traffic over the bond. We reliably hit this window, making what should be a non-issue into a customer-visible packet-loss event. Implementing the full state machine closes the window and makes these maintenance events lossless.