Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp221319lqi; Wed, 6 Mar 2024 15:19:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJMO7nQDXh8CiS4MeWLbWKfaXfknjSChasrELefs12vMycSTXoR/HLOB+BJ6MD+IExEUs4ZMxUySAMnCInXIn+j9B1u2oCccWuFegyMQ== X-Google-Smtp-Source: AGHT+IGUEEZquixnht/ExOaYi0XOId5Orb13XHchT6hBapFzefUT3X8paMnABdIYFqfSqkCPRmod X-Received: by 2002:a17:902:fc43:b0:1dc:a84b:e93b with SMTP id me3-20020a170902fc4300b001dca84be93bmr7794318plb.4.1709767174097; Wed, 06 Mar 2024 15:19:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709767174; cv=pass; d=google.com; s=arc-20160816; b=isaskOrUunldUb4OARpTylIWjOe7pXfQjNvzRAuJ2U3ubAWnMYovY6koR2ftT8WlyX 3ZdqsJXlVwB9Ge3sLojE/hbe/oiUiOjYQ5Ol/dog1gZtZRy3QKXbOoeG1l3Mf5PqZkQJ AMNe9zsEcV9y91m07W2KQ84eYv8tRfG5aoC6KZIhdDfKvjAohQviiE8aom7yO31yyc70 qaO0ErqoRw4j0INdqf2/ZVZT4dHe44Wn7S9T3BTFissKpWN9qTUrEq+4AsMmagTNJv7a Ko12RUgYGESK8Oz3dD+UzzLepmeZaDy5Hd6NUN3uixjF+bpXcI/KNTrp74WFvXG7CYEB kj4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=NX6Md+oBn19ih0UZU2ErF+IlZhbJrOPTDd81R9SSQ8c=; fh=mDt3Ulq3UftG/onYjH75L4ftr38uBwLJu13644iV0kg=; b=NYZmdEE58i2UX/BkGIUKyr7dgzWY4LflmqLei5AGvfeaQLwWr24ZCMKDNOXVUnwk4p hWrlUvSP+DLZCKokLt/mJJnB6sf1o2BGt1U0Xf8y9VGUn9Orl/9nV8E1AbYVTv3nyVPJ iii0Tkur3g8Uv8KMCwHaQeJDaNh7LCZheZgWUfQMfvjYeORfHpPZOIth2HGqHRwjUwo3 7F5Xn3S0qXoDYxvHQGmN6Tic3i/2rxt2QmwnK2U0gMNzRWJdmfp1nxA9mLkkMnwLZZt5 NIRJ27PpfyF8s2Wuz0i5uORDffpeKsbmd95Ho1uLT16t+m3tl44PhP+mnqKfB0KCeSBf Rt/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IjiekEWu; 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-94703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i2-20020a170902cf0200b001dd2b9571b4si3977916plg.229.2024.03.06.15.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 15:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IjiekEWu; 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-94703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94703-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A7B5C281B04 for ; Wed, 6 Mar 2024 23:19:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 012851CD04; Wed, 6 Mar 2024 23:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IjiekEWu" Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 D928A1B7E4; Wed, 6 Mar 2024 23:19:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709767156; cv=none; b=cnwLhfQKPyGrr/xNZA7WSOlN4l6YiT0dXMfww5lAS9Y3JhVCERs6DMdyzEd8avPLln3SftkkQA9ZJSw5wgBWqXSp/+KF8rFQakNDsqNf95Vbs8DhCRkp12W1BYGlqYSNIfP4f1Zr6GOP2wiDUrXqsisbQK6eIzNrTZkqc2OL5WA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709767156; c=relaxed/simple; bh=Eet2uY7R5yoExtpUg1dh6EqqYShuHUN2ekYNffXb8SY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BFBVcFQo8JxxUgj/vSUGlZdsy5P4tmZUsDutVerztZrB8xObZfsbxV6cxU59GIzGj7+2Jxd80NSe9E0KleY8Bg660zOnk8dwnBRicSMXCag1kxpWYvjmjV1xb2M8JA+mh3E2AekXGQ2WA6LTdUW40hIfDRBNxGOcm+C8FZmwxDU= 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=IjiekEWu; arc=none smtp.client-ip=209.85.215.178 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-pg1-f178.google.com with SMTP id 41be03b00d2f7-5cddc5455aeso206232a12.1; Wed, 06 Mar 2024 15:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709767154; x=1710371954; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NX6Md+oBn19ih0UZU2ErF+IlZhbJrOPTDd81R9SSQ8c=; b=IjiekEWuEIRnrN8h/es00gakQ/FVE83Zq+i1Hbe/22NSSnzEbH9Xns4azhsbSI/O1U D/H+Ia6Qk+Ou4I6xu5Mvcuacwy7rRq6sOOxfQbG3m5iaMdwn6bD0AaisE1wRO5ger3/3 z3tDY1auvPCMfgAbTcL6LJkqULwbUCtgBJoKrfC3+jUjI20seq8aip94H33xO8Bevvjv RRknPFvTzg3b7z8cYVBEUhkjKTlbaC2NGVl4sA1BPzFaNZsmeogKsEcJA2cwrFdxa+qT Nbnw6VeJy2QfI7zRJS3xlZ62X9at8BuyANvnnJtGL3LEpFwddREKoKeh/eIDwPv8w78P Budw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709767154; x=1710371954; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NX6Md+oBn19ih0UZU2ErF+IlZhbJrOPTDd81R9SSQ8c=; b=Zrpg6yihk6eFvKAB/YG6YxaN8kOgyjDIwP31TiLxRxK46KWPISR2PArIaFM5hBea3+ 21roUGVji7mwo+V+5BRalJl/TQRH4P9qlFeXfmkcWQuDGnZnVEUO+wmWXwXo8rCmLYam pk7eEdC2S3vKY5sJOaFLKth8j7eTfVXej4/ZQaVWlXZJk0CYNCZA6MEBQ8n0Yo91oI5a X8lU4XHOUVSK1IO3ptzYkcRxW+7NS//xmYuD/IsXoGA7/mop7MJwRMwFVITTt9gC1O3N 2A04x0t6i3AaX+I4WXnoOlnOp+8TpB+xkKUqU76IHIqzsirJMucnHFbbKiFDLsmOk/uq 5/TA== X-Forwarded-Encrypted: i=1; AJvYcCUinUvjTDyciKyboRdrQR7/U6C7MPT/bNMxNVs20OCP0kQhyFAd7r+cJTzdEbnzjJERj4C+BSQvBnO0+VcjwrcdZ6cN6lnW6A/t61ir9aStqXWc7f0L1M6p1/Vh70v1FC3DAW1s X-Gm-Message-State: AOJu0YzTjxU6hPkFDWtfX93M8dgNGElqx6D1BlZmfOQh5PrMKT3Vz84Q +QMhSBkpyYOrwolLC2QS0OlX2c9YWqg9AQqAfwcdh6rnaia3nXUd X-Received: by 2002:a05:6a20:2a20:b0:1a0:e1ac:c4a9 with SMTP id e32-20020a056a202a2000b001a0e1acc4a9mr4974296pzh.60.1709767154113; Wed, 06 Mar 2024 15:19:14 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id gd10-20020a17090b0fca00b0029b22d8f5b4sm267293pjb.15.2024.03.06.15.19.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Mar 2024 15:19:13 -0800 (PST) Message-ID: Date: Wed, 6 Mar 2024 15:19:10 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 16/16] net: dsa: vsc73xx: start treating the BR_LEARNING flag Content-Language: en-US To: Pawel Dembicki , netdev@vger.kernel.org Cc: Linus Walleij , Simon Horman , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Russell King , linux-kernel@vger.kernel.org References: <20240301221641.159542-1-paweldembicki@gmail.com> <20240301221641.159542-17-paweldembicki@gmail.com> From: Florian Fainelli In-Reply-To: <20240301221641.159542-17-paweldembicki@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/1/24 14:16, 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. > > Signed-off-by: Pawel Dembicki Reviewed-by: Florian Fainelli -- Florian