Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2083190pxf; Sat, 3 Apr 2021 10:19:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZJFlvfAc8CwO8GBpu2oLXNvZZj7M9/Ouhr0iwU2o5L+KjavgZagET+zrGC2Bg7irWTk7F X-Received: by 2002:aa7:d4ca:: with SMTP id t10mr21869861edr.388.1617470349910; Sat, 03 Apr 2021 10:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617470349; cv=none; d=google.com; s=arc-20160816; b=dhO+4PmPOxHjPCmqOnFLReU0ldJIF99AKe681Jpg1Hbb01wlGC9l97P1a+NU4c2wOv e0oBHqEjpWrNsiOyEg7WKiL4IiuEmgADrbNsNk4adRwqnCMId3Pwk7pNhjWI9L6yJ0W7 XPScC7teiOzLpn9XVqrBucWR+kCdaLeOo2eq7Y3UlW50ysmzfGmT2h4XaLmUT6a277Ft m7AuAir9NexTX3wNQrtOHhN1pZLPYpvZSPM/39GlL6vv0TCAWXpYhYioF8FnwmJUZNy4 0jrMksiAl0Ozl6hptHEI7yHJD8OLVXkUqxsOhxXBEQR9kTQRpRR1wEgcfdLR9CJPwjUZ t+sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xJW5LGZLjCHgL5hdJIEuWyCFxcI2xILJZmQFOIIXYw4=; b=sjlo/Jaz4J11hAuQhMh9O4kvmt1sErOns+aqpupTrxoXGAK4FeRiagIapqeIR6GYc8 00gplY0g94TEmHsQgGm7cQE9InS1RjmTSa/nfDIzweeRNagUx/CZXgPU8OH0c9kciIXf +YriNxJvNapa/YUAYLsb83/cmItKVXplHBG4NMTbPGifqIy+84u/XcqfQQhSEVjLoIsH pH23fHBMWQbWOvpW4P+BtV+Uk6na4d9FHyt4xPByJDL401WDqKLfSUpfJqv3HmfRQZ/z KPLi39x9W1q9rw22i+W1NmaPg1qXMDe5/n74pDY0Jemg2RKW5qivlgmkSVYyZI1UdoD9 37zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=cOmkdq+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a42si931919edf.438.2021.04.03.10.18.47; Sat, 03 Apr 2021 10:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=cOmkdq+7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236925AbhDCRPU (ORCPT + 99 others); Sat, 3 Apr 2021 13:15:20 -0400 Received: from mout.gmx.net ([212.227.15.15]:42917 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236819AbhDCRPU (ORCPT ); Sat, 3 Apr 2021 13:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617470100; bh=JrV89Lo/xurYMRPkWpl1O0IqJxEWTwx1p8wZRHot3Tk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=cOmkdq+7mvDKGLg+zGlgtPtlMu8zgGX/jZSScRKGuxkD9QIyYuZ+el3+qXXK3XSBl CETSiUc7XzYi3sVtgYfp0fMTY7htPg3OD4ug7NlKTMDNnkhhYlHlu6YRQb4M38ZlJr 1PL9uFQOeAs0V4JIexz30y81hG9F70sMfyi2Rf5U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.178.55] ([95.91.192.147]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MatVh-1m0Qmt2evj-00cNrs; Sat, 03 Apr 2021 19:15:00 +0200 Subject: Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets To: Andrew Lunn , Oleksij Rempel Cc: Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Russell King , Pengutronix Kernel Team , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org References: <20210403114848.30528-1-o.rempel@pengutronix.de> <20210403114848.30528-3-o.rempel@pengutronix.de> From: Oleksij Rempel Message-ID: Date: Sat, 3 Apr 2021 19:14:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Gtx01aF/6gl4/c7myW4dDa77MMX4E5f7rZ2FRxZX8CruSrEy5ZP ldPhJ0dUlDXXSMiJmc3cn7eu1lAxPgy6rOVuCc5jjJnyqEn8b91kNJuP/a6F8n7cNf606CH qynwN1zRHnxJuaTyqzVIq30YCvcSBT5B17vdepDD9wtF/tQrOWHNxO5F4+9lAgKxxOVTTLN WV1M0Zrcgq856HWp4zaoQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:dvXwZOyeFAw=:4WxPuj6fRWDf420c12wRU+ lf9oQsAXeYf+0nhIv/xMBe2feFjxWgToHawWgdcqj6P74EsnTvT8WMBU/s1+SWwHUdGy8sZ67 5KU5x7WBxJDGiZDkXjZfcPPvdntOwjapLja+FVQmAp2nOh2VYV6XBuB0dW5s3AvqkQciIbLu2 pQfw/mxAro6nQJGv3a2NuObrv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JJ6PtU/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 03.04.21 um 16:49 schrieb Andrew Lunn: >> @@ -31,6 +96,13 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buf= f *skb, >> __le16 *phdr; >> u16 hdr; >> >> + if (dp->stp_state =3D=3D BR_STATE_BLOCKING) { >> + /* TODO: should we reflect it in the stats? */ >> + netdev_warn_once(dev, "%s:%i dropping blocking packet\n", >> + __func__, __LINE__); >> + return NULL; >> + } >> + >> phdr =3D skb_push(skb, AR9331_HDR_LEN); >> >> hdr =3D FIELD_PREP(AR9331_HDR_VERSION_MASK, AR9331_HDR_VERSION); > > Hi Oleksij > > This change does not seem to fit with what this patch is doing. done > I also think it is wrong. You still need BPDU to pass through a > blocked port, otherwise spanning tree protocol will be unstable. We need a better filter, otherwise, in case of software based STP, we are = leaking packages on blocked port. For example DHCP do trigger lots of spam in the kernel log. I'll drop STP patch for now, it will be better to make a generic soft STP = for all switches without HW offloading. For example ksz9477 is doing SW based STP in similar way. =2D- Regards, Oleksij