Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8050632rdb; Thu, 4 Jan 2024 17:39:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgrVTfWAbSoPSOPiJRp2ieIaP4zEjjM2AOyyXTJUaCUTEaibgZKMqgXXgXkjx8jh90G8l7 X-Received: by 2002:a05:6a00:1884:b0:6d9:bad8:dd9d with SMTP id x4-20020a056a00188400b006d9bad8dd9dmr1531183pfh.50.1704418746128; Thu, 04 Jan 2024 17:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704418746; cv=none; d=google.com; s=arc-20160816; b=cVQ1+jepkKUx0VWckw8Zs7GG7MR+IDo9hF8v3MbhbjFzQ4rUXXLBg7X/PPAcYmeTOT oq/X+T0UN2EIrMpHzPdkBQ7MtG7MC2/yz9PKE5b0VlSeun1uUSor1rEcg6hIxakuzism O+zc9ExV/50YD7M/QNGpxDSs9Aq52mI1ZRaw5GPDq2GVr5NaCzJMDBzNSfYd5GZ6f+M6 gB+d4wkO5z27UqJ+E8ZmLYx3k7YSiAmhQAfSb5syqlm1S/A7tZE78ctaOoZdyE6pUYs8 j6xTPqqmMrs2c3BKfncGWCyren7q5FgzeKO5pUL3eoh8Qg632WQOU5hhxZrp7udCOfs8 cZaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-transfer-encoding:content-id:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:comments :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=ThE/iObI5dS3ufwJWrC/Dv1Bp4OAJFFio8SPXvJGsN4=; fh=04t87oaxV2HDFmxT6PjhONEwpJXpd93KvVq6NPDPCsw=; b=Hekt6byS18RbFTGOwOXXcm0Mc5JO2tfSfBi/akd3rSagDY3g5PV1J5EccCSNQluLJ8 gQgLFUmLa/u3vwyzodJwdulCEgzg0vclAaBeevQZguxazCi2vpwyX7ZbWjlhZyX1P90o M/TZnIzuEWhltzqR3n2WTSC0KBrZuzinlLZKbHgC0PpyKKKm5e3zVsWWOUFdYKJX02hi LVwFf09OvppwDtEzevAFIrnPBx1f+xant7EyFQtDA/V4QMqX7G+X7wOmQL3xwVXtH9Wl VihhQY8rLw7KxhGfdcgPmN9/pDxujVLGLAzuYTsv0p8Hldo16Ax7YeX6TJbn1U2QvLQt 4MUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=FoOHf+UX; spf=pass (google.com: domain of linux-kernel+bounces-17397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r10-20020aa79eca000000b006d444584009si437026pfq.355.2024.01.04.17.39.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 17:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=FoOHf+UX; spf=pass (google.com: domain of linux-kernel+bounces-17397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C91B42869E2 for ; Fri, 5 Jan 2024 01:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A02974403; Fri, 5 Jan 2024 01:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="FoOHf+UX" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 322393C0D for ; Fri, 5 Jan 2024 01:38:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 7426B3F154 for ; Fri, 5 Jan 2024 01:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1704418734; bh=ThE/iObI5dS3ufwJWrC/Dv1Bp4OAJFFio8SPXvJGsN4=; h=From:To:cc:Subject:In-reply-to:References:MIME-Version: Content-Type:Date:Message-ID; b=FoOHf+UXo6GRLPrVxqyNtReGqrfNPahPA3hnimMiXHEFpKKoZX8Hl4BAJLEc/cWJd xFcr6+iWPvHshbX5iITYnQEtBk8nv4tP0dnIIcq8YQ1w8fnQg3ybbyYbs2Ox885yDz 9B2D84BbpWRX35I4cyJdkvSqmZiC6C7/JJAO+OS0hMqy7d49UxQL3NC3WAjoGmlbBt 79UpGVAq6SXvpxiGHtZ1KEi3GZ8GmXNsFufN1bCwU/lE3E8ez/0gouhhcmdDMMyzf3 gTZrO9P6xb6w2u+CiWRtHkRkF+fBY9dA6tdqNwU/sfrVbX4gPvLZ5CUF7/GlMiWTBr xuoVscipuePWA== Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6da83a2cf03so1008156b3a.2 for ; Thu, 04 Jan 2024 17:38:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704418733; x=1705023533; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ThE/iObI5dS3ufwJWrC/Dv1Bp4OAJFFio8SPXvJGsN4=; b=jzvzSfhg8BcFnCJyjHY46txmkmC9dioZpcN8LZwhtg+93a90+TCY7On9i8lOAq4I56 +uxEo2UfpvIQaOs7xeoPgU6LTWDlsTSuL6HXLc+5aGVjYY6BGtt3XeI0iag6DM1BujvL N2qWscUvTshxZ3MLX6USAmQtsPzr0FMNRw3bXXTYUkzwrBrF6Uq2lU/xGFzNRusaP5bt scI49moA0dKUZYue47R7vd8uclDDBgbso2P50iRJQaM6O2QfWPls+6KOFTaJmkF37Wza uBXdvuYVHQQtjcZiiXU3gkO8ECGhIse9k6akUyntbo5qzKB5t45/a57zCZxNsYgKqdLH kgRw== X-Gm-Message-State: AOJu0Yz+wlcSJPaIn9W/LHek3943PKRo/X6dBRiO57ElXMZT1NO1Qh/h mUhtky/lKAvJ49AqyLGk1N2L7DX6YpcA+e0P58dhuVOcZAhPLvY7lYCNz5/of3QZnVpnxnvbUTA 4SAjJX/itkIl0SVXYW5jOLdr4SCgLL8cnthkkdLS26qr3muiB X-Received: by 2002:a05:6a20:3ca9:b0:199:2cf0:38bd with SMTP id b41-20020a056a203ca900b001992cf038bdmr766832pzj.97.1704418733177; Thu, 04 Jan 2024 17:38:53 -0800 (PST) X-Received: by 2002:a05:6a20:3ca9:b0:199:2cf0:38bd with SMTP id b41-20020a056a203ca900b001992cf038bdmr766819pzj.97.1704418732864; Thu, 04 Jan 2024 17:38:52 -0800 (PST) Received: from famine.localdomain ([50.125.80.253]) by smtp.gmail.com with ESMTPSA id bx1-20020a17090af48100b0028cf569b58dsm8690pjb.0.2024.01.04.17.38.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2024 17:38:52 -0800 (PST) Received: by famine.localdomain (Postfix, from userid 1000) id 2C2465FFF6; Thu, 4 Jan 2024 17:38:52 -0800 (PST) Received: from famine (localhost [127.0.0.1]) by famine.localdomain (Postfix) with ESMTP id 24D699F85F; Thu, 4 Jan 2024 17:38:52 -0800 (PST) From: Jay Vosburgh To: Aahil Awatramani cc: David Dillow , Mahesh Bandewar , Andy Gospodarek , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Martin KaFai Lau , Herbert Xu , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2 net-next v2] bonding: Extending LACP MUX State Machine to include a Collecting State. In-reply-to: <20240105000632.2484182-1-aahila@google.com> References: <20240105000632.2484182-1-aahila@google.com> Comments: In-reply-to Aahil Awatramani message dated "Fri, 05 Jan 2024 00:06:31 +0000." X-Mailer: MH-E 8.6+git; nmh 1.6; Emacs 29.0.50 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11316.1704418732.1@famine> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Jan 2024 17:38:52 -0800 Message-ID: <11317.1704418732@famine> Aahil Awatramani wrote: >Introduces two new states, AD_MUX_COLLECTING and AD_MUX_DISTRIBUTING in >the LACP MUX state machine for separated handling of an initial >Collecting state before the Collecting and Distributing state. This >enables a port to be in a state where it can receive incoming packets >while not still distributing. This is useful for reducing packet loss whe= n >a port begins distributing before its partner is able to collect. >Additionally this also brings the 802.3ad bonding driver's implementation >closer to the LACP specification which already predefined this behaviour, >that is currently the implementation only supports coupled control. > >Added new functions such as bond_set_slave_tx_disabled_flags and >bond_set_slave_rx_enabled_flags to precisely manage the port's collecting >and distributing states. Previously, there was no dedicated method to >disable TX while keeping RX enabled, which this patch addresses. > >Note that the regular flow process in the kernel's bonding driver remains >unaffected by this patch. The extension requires explicit opt-in by the >user (in order to ensure no disruptions for existing setups) via netlink >support using the new bonding parameter coupled_control. The default valu= e >for coupled_control is set to 1 so as to preserve existing behaviour. > >Signed-off-by: Aahil Awatramani >--- > Documentation/networking/bonding.rst | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/Documentation/networking/bonding.rst b/Documentation/network= ing/bonding.rst >index f7a73421eb76..cb3e6013605d 100644 >--- a/Documentation/networking/bonding.rst >+++ b/Documentation/networking/bonding.rst >@@ -444,6 +444,14 @@ arp_missed_max > = > The default value is 2, and the allowable range is 1 - 255. > = >+coupled_control >+ >+ Specifies whether the LACP state machine's MUX in the 802.3ad mode >+ should have separate Collecting and Distributing states. >+ >+ The default value is 1. This setting does not separate the Collectin= g >+ and Distributing states, maintaining the bond in coupled control. >+ Please reference the standard in the description; this is implementing the independent control state machine per IEEE 802.1AX-2008 5.4.15 in addition to the existing coupled control state machine. -J > downdelay > = > Specifies the time, in milliseconds, to wait before disabling >-- = >2.43.0.472.g3155946c3a-goog > > --- -Jay Vosburgh, jay.vosburgh@canonical.com