Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp438416lqc; Fri, 8 Mar 2024 01:45:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqpUPOR+8CTsRBF1KMz/hkh04Dlr+BckgNgN1qo1sWwgIN/A5OP822Z0PwmGThc14De1ThSY0ZHslShDQaize1qhDAAxwabar/F++HBA== X-Google-Smtp-Source: AGHT+IEJ78sY5ASqGWxomRpTpe0MRbKZrplyyJkkksimC/DSXOZC4fMQNfghbldF7DAuRrM0jXuX X-Received: by 2002:a05:6a21:1a3:b0:1a0:a449:3e39 with SMTP id le35-20020a056a2101a300b001a0a4493e39mr10779463pzb.16.1709891137894; Fri, 08 Mar 2024 01:45:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709891137; cv=pass; d=google.com; s=arc-20160816; b=yVZcHW92YLryUpHJK3nEGTqt4Afnu55pTQnXmhQoshfZYGpMKgj7zI03fSoFjGBtRs r68TU1lAhymbgAWqhAMn4+08r6xYTnXLtUzi8fZtg6jy+B000PCEm1WjirKw2ZOP2zHE YFtMiJQI4pgB+PJ7Lbj2dRWLNvbwe25zLQyPx4POEgcCufSKPzjbQeWHgNBZP/FOyU7P V6zr2UcDAi8/OUkffGSBf4qJAUOzMdHWZ2lsfcHncxmkMKPno8wvFfIRsHPDnOVoKxVg RXBEy1OSt/h6JhrtFWTHGbld1ef6hlgQYysM6py3gI0Bu+lyhTbFiQT+ofLfJZN0WBDA u1EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W9SPiC0VKHbOOYDIw53rfq3rdbB1slUM7uRNpzQd19Q=; fh=6ydaNDkGKFFZs4X1Q0VMV5iT+O5c75nnK53J9OiVOWM=; b=BokDj/ONfsCBsO2sukm5KIlBXpHSPtOHDvu/+YuRBhTINIuejGVJseGHlFBRMLw+MD 7g/6avQHdkilv+xihoUr/dvODrbBxzS38QHAc4lgFf3VhyD9fK9tT3yL3/sv88OQ4C+q 7zjEbR0jswuW7x7MoNSjklUVT7ABY+YsM/TWiwjdlikTtiodi8pIgxaBL2+FNnqAgEf0 QVncqWHnbYBYsR9lP15erdIF6m04L2NTr8tP7mnIeHCoHU9nIdnVyuHeoPls9MZEF5As SEJscE/AZ2UgXVHchyG8XjOXd9E46Cn0ILuR8e6v8vV/DN7qNfdpzsmRLfyWc8hOUqaB WjYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LTTumhS5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c14-20020a056a000ace00b006e558a20e88si16357358pfl.208.2024.03.08.01.45.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:45:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LTTumhS5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 91A28B2428A for ; Fri, 8 Mar 2024 09:42:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93E61535D7; Fri, 8 Mar 2024 09:42:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LTTumhS5" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39FD526296; Fri, 8 Mar 2024 09:42:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890967; cv=none; b=SB07GdZ8GgxblaHUS7roqTk7KJSNkxJLU1GVcmCiquWeS81lpeKrakpOde0XxGDijJOMRuSk9pjO4akZa9f5bRhlXyl/+Dk8HFib6fhAT43NQORRnNazw3ockr9S57M6+Fuy514OXtmbJLVLcnsxb27l/m5qx05uspQlljhAbY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709890967; c=relaxed/simple; bh=2XguDX+eb+E30OJtbj6YkSePzXzPfNL6xC0lRsdkrPI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CCgXGk1nUgYQwPSGkr0Syi9No9HWRsmaiWa9Om54cbnduXPGbrFEfQcUYAYWqhr33tqKVWn1gfsWMm04t8jmJGntMoK0OoRdsJuNDSwifKEW3IEhTaAgP/i3TBZNMZkfWDfDP7WjP3ATuASc0h17/CnORppuVz+amFrOMZWg0QE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LTTumhS5; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-56657bcd555so2234006a12.3; Fri, 08 Mar 2024 01:42:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709890964; x=1710495764; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=W9SPiC0VKHbOOYDIw53rfq3rdbB1slUM7uRNpzQd19Q=; b=LTTumhS5fMjkdQyV5GfLmnnF0TaBLwU0WnrKuJ97FSXKvighwAj8EVaciInmUkru3a Z7xBMQzGupdWiKrCzqK33Ii7L3MMJkLZXUsb7kWNqzQgDTmiinRSOPIxueRpWMEfRq6M kRhUaoc4TELgQyAiu2myofHd4reDUlrKVrJF/tqBL8tJ+y7htrS8HUBNOSOZzeY9+tSb u3f53rBU7mnAdGzSe0cNZm3ZHT20+Jq51FwwqA0Ecw/VGB1B+8N24VNvhfzMYGS8/FmW WO/on7Udc4LvE9YdnhRaVMM9d2XW0u23ZIcSdOB3FbGrQNqa49POa1X1JjtoUsk6+oQz PxrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709890964; x=1710495764; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W9SPiC0VKHbOOYDIw53rfq3rdbB1slUM7uRNpzQd19Q=; b=r8+W4TM0xlavUnoGeoKQfygK6Qe+noHpklSgB+1d21qveuLTwWWgbg7vpiLUl/CQj8 5q/grS43GkEiT7Dqre9sLMFLpfPbMHj2XoRbqFiZ7zby6Ca1AaAuFeu4w1+BOVxRxryx 3Lb6vZ696AEjajcoyBhKYdlVQE9sek2FfFzW1mX1fXK1TU1N95mzeJDdZeN4kdbg2Rlv VantXuIAKeKU+naPs84Uccucoz7GKBdXIlEUojkx78KWeX4inEu+M3vuW2Uy9dZBRFIv YDHpObBByvX6YXP+tLL70GA9vb3p51SwJkRN4AOsg2WpU6kUoH30yyIfbQ/l+ky/lxtm IFIQ== X-Forwarded-Encrypted: i=1; AJvYcCUaKhJTMlf5+NFFMqQdJvOy43OrKfJ8f9qffg4cVcnmlxKM0GvMci9zIgcQimyAxsMAUhYxaOvY50qIxQDlXNqXlwB1I/WvjZ4tTbfX X-Gm-Message-State: AOJu0Yycyb24S1cra2zelbGsx92302IA0MeSAJCwqKjXnicQbXeIRiUe ARWrGPcEnuS6caqa3HEAqlZUMBljXtCARYzlYjec3gaOxyRWZOZXAdBPFGRFeXM= X-Received: by 2002:a50:870b:0:b0:567:a37a:4c95 with SMTP id i11-20020a50870b000000b00567a37a4c95mr1291318edb.42.1709890964331; Fri, 08 Mar 2024 01:42:44 -0800 (PST) Received: from skbuf ([2a02:2f04:d207:f600::b2c]) by smtp.gmail.com with ESMTPSA id q20-20020a056402041400b00567f6310010sm2462069edv.59.2024.03.08.01.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 01:42:43 -0800 (PST) Date: Fri, 8 Mar 2024 11:42:41 +0200 From: Vladimir Oltean To: Pawel Dembicki Cc: netdev@vger.kernel.org, Linus Walleij , Simon Horman , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Russell King , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 16/16] net: dsa: vsc73xx: start treating the BR_LEARNING flag Message-ID: <20240308094241.iobnxcesoadzuo7w@skbuf> References: <20240301221641.159542-1-paweldembicki@gmail.com> <20240301221641.159542-1-paweldembicki@gmail.com> <20240301221641.159542-17-paweldembicki@gmail.com> <20240301221641.159542-17-paweldembicki@gmail.com> 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-Disposition: inline In-Reply-To: <20240301221641.159542-17-paweldembicki@gmail.com> <20240301221641.159542-17-paweldembicki@gmail.com> On Fri, Mar 01, 2024 at 11:16:38PM +0100, Pawel Dembicki wrote: > This patch implements .port_pre_bridge_flags() and .port_bridge_flags(), > which are required for properly treating the BR_LEARNING flag. Also, > .port_stp_state_set() is tweaked and now disables learning for standalone > ports. > > Disabling learning for standalone ports is required to avoid situations > where one port sees traffic originating from another, which could cause > invalid operations. "invalid operations" -> packet drops > > Signed-off-by: Pawel Dembicki > --- Reviewed-by: Vladimir Oltean