Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4113908rwb; Sat, 21 Jan 2023 06:08:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfBpP4bv1XE9Zxo5NoLs2I/aVgbItx2zJ9hgNH8JaHxFygSG4R6SswOOgFZi9Toq+krPxH X-Received: by 2002:a62:4e8e:0:b0:580:fb8e:3044 with SMTP id c136-20020a624e8e000000b00580fb8e3044mr20722127pfb.22.1674310103259; Sat, 21 Jan 2023 06:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674310103; cv=none; d=google.com; s=arc-20160816; b=DSEaEG4QtPDtcO4fJJN4+fxvUb5SbTvS0v0fRb6R/2SQeBgGuTiLYbvvQ3JM7/RBty VPAF3JJAKUZt1EmRd4BJR5uA1nKOTkIUUXzaRQ8nYgrx9cuP/vMc4N5Rae3H5uH0Ol8d g1SVMCSnNG/bHAr3hTgDugHdj7mMYdGvzdhOwDuvbptWxX/Ah7Imvazujnon/U/QhL6X Wh/0eWifprdro5zmEVd8VsJv7AneIHUH2kjvW3gRj13bOz8knCsQtYe48hHbRQNn6Yov +AzPzSJVIoXNd1rXyYNRy9gd5kQVHAfSDsYPhyGKSrkYplzxY1ywbxi6gE3dkUXQou1k Aymg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z4YcSrMX/G5vP45y4HfVQg5h76ReOicUsuhYXyLi4UM=; b=T6f6BI7iFjm1yCap40bEvS0uVovBqKQ4GmLwdnZDgXtEwlgjC5S5d4re+X7WBFEMqp 81SajAQBPmDVdGbXZ5hBHzFX+gF5dV+PgauGHRAsfbpH1UFw33YS5Hg/+Th7L7myF1U6 nIT2NaS/1RdgOrOOHSyiirYVrfpwdnfjI4+0nc94I6Zzc8asV8raOgY35vSWPS/Jh3ff O76Ftq32PhZuFWtbWJbVTxzeUxS47q+JtOJvl+W8qz7sqyWM2DRYqbNowFS+Ela1zo7y 1F1M9IY+cHw+iahsgvv74Fkt5k3w8izSINsdH3pXrSfPR1c5qYlebp1A5QZjygy7v/0+ MGYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jloDOGfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a056a000b4100b005728c05ef9esi48152190pfo.14.2023.01.21.06.08.17; Sat, 21 Jan 2023 06:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jloDOGfn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229907AbjAUNf4 (ORCPT + 50 others); Sat, 21 Jan 2023 08:35:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbjAUNfz (ORCPT ); Sat, 21 Jan 2023 08:35:55 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC2349426; Sat, 21 Jan 2023 05:35:54 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id az20so20426528ejc.1; Sat, 21 Jan 2023 05:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=Z4YcSrMX/G5vP45y4HfVQg5h76ReOicUsuhYXyLi4UM=; b=jloDOGfndeuHEZxorJIwmvQ6L+AiemwBGczaRnr41DRAjQG2j38Fi10rAMziWmYTqd xbY4/wAkeP4stBfqV2UO1T/d7BDq9oZXl2qLUrZ9DcW1xiagrLbdOzolPWWDNlQJ9OLX kuKQKXm0I4QTxokTyShw6/S3aDPyqM2QJj8ROqCTEqL7NuE52SNbZyuOd/Qv34vbDH4h NoSIWlB3tJ+wL2Ss9NMpCwukvdEfj2HaMrPRP2UcIjstSD0CFOYV9V7zazSE/BvIHTE4 R/u/eD93slmsPVS0SaNgRmsKsbM8RyFn7+4BVV7YYPDLA4OcJz7DYhv6UW9POvaZdM1W w5UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Z4YcSrMX/G5vP45y4HfVQg5h76ReOicUsuhYXyLi4UM=; b=CQu8RUTEzpSb4zu2dH9OAeDevSGRMfnq3dfCE51EkjrPcF6Kg4JUJntGeazasOEwkr CDbbZAGiazoNo//DgQ9z7Z9Xq4obtBi2XH7SBc++nYplqMLZOzkAmcWJ2zdM41vnYOvk s0NvbQYuHooL+1/ecLF7lm3zXyUU9TiOFRa8HWvKcEcyvXUEyo2xEw8f7fxZw1QO+3G6 kiMx//w1THWf5c9JmSfsmPV5eAe6itWfkiDnPly5jqD1SQsLtjzcR3LXzRujbMCvndqd cg48musnsSMg6d/nNr9bGMZERdUacRXqiYO8eKtDzEJHSgaw88oiuyolfDkE7KkTHWM8 tC2w== X-Gm-Message-State: AFqh2kqMVJOvjDQ1HbzoHqdDvjf6P4y5Kc3szO8LOMea+hZCfI8GXUjF uhwy5rEBzkMWs8zM4Nk5uoQ= X-Received: by 2002:a17:906:8e0a:b0:7c1:1444:da41 with SMTP id rx10-20020a1709068e0a00b007c11444da41mr34521652ejc.40.1674308152684; Sat, 21 Jan 2023 05:35:52 -0800 (PST) Received: from skbuf ([188.27.185.42]) by smtp.gmail.com with ESMTPSA id et21-20020a170907295500b00871f66bf354sm7695559ejc.204.2023.01.21.05.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 05:35:52 -0800 (PST) Date: Sat, 21 Jan 2023 15:35:49 +0200 From: Vladimir Oltean To: Frank Wunderlich Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Landen Chao , Sean Wang , DENG Qingfang , Matthias Brugger , Daniel Golle Subject: Re: [BUG] vlan-aware bridge breaks vlan on another port on same gmac Message-ID: <20230121133549.vibz2infg5jwupdc@skbuf> References: <20230120172132.rfo3kf4fmkxtw4cl@skbuf> <20230121122223.3kfcwxqtqm3b6po5@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Sat, Jan 21, 2023 at 01:32:42PM +0100, Frank Wunderlich wrote: > so first patch fixes the behaviour on bpi-r3 (mt7531)...but maybe mt7530 need the tagging on cpu-port > > > Can you try the second patch instead of the first one? Without digging > > deeply into mt7530 hardware docs, that's the best chance of making > > things work without changing how the hardware operates. > > second patch works for wan, but vlan on bridge is broken, no packets receiving my laptop (also no untagged ones). It's hard for me to understand how applying only patch "tag_mtk only combine VLAN tag with MTK tag is user port is VLAN aware" can produce the results you describe... For packets sent to port lan0, nothing should have been changed by that patch, because dsa_port_is_vlan_filtering(dp) should return true. If you can confirm there isn't any mistake in the testing procedure, I'll take a look later today at the hardware documentation and try to figure out why the CPU port is configured the way it is.