Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2007946pxf; Sat, 3 Apr 2021 07:51:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwm5sPiUy1glwLu6aT6dAKhDl4sUlyypDyGbCsenb9j8/WGKI5mIQRlz94aXHQlGPQaFBO0 X-Received: by 2002:a17:906:80ca:: with SMTP id a10mr19416099ejx.297.1617461460598; Sat, 03 Apr 2021 07:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617461460; cv=none; d=google.com; s=arc-20160816; b=JnnumH06EJkalV8fgv4AD1FeJvZI6LfHlS1ymGNCNTCRfKRWdhD+XCPOOGa7hLicqF d75eilahrq+Mb4X6DbPDS0lN+007y9XKKelo8o/KaZVbeJuhRbKKD/Eq7KpeC8IhyA0G haRzSx0mtRe9ePaygZxApXAA6VpZkX/dJZLr3K2EjoMU1FIWPssGwzsYPqK71wbM0bTi ER3leeEPmKjAbJ13Jnab6TEPIraRMnkuung07Mz66xTXOultFVG1Bo09M9/5/V7rFNzI q8j9zqjrPd6zU1hErJ/qSr/abKIlc6/SrN7Ctldttci6UB3ugAgDjH3bfS7zwPft5/Qw 1AxA== 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; bh=OGaRbyNXi/vYwDZ3f+BUEWb42yqsA6sKSDgcDBtyNHA=; b=hW12E1Ph/XOXRce5hxhuEIFfc8grWALlPw03M3VscBD6URXEvP5GGGLK+Uz9h7YK+v bdivK9BcmVopmS77yKkXjwa0Rdi+yOudbUct2PxL4APMA9JG+nlkMYzQ5Gu38jAuPjn8 2BsoyHM9ZNtAwpm83qdbIaLygo0khVaxC9N2amMFgM+8h4WvEkppqtMaNc2ExViwjjqG 5efpYqgc76Mu7BfQjjK1PkVR3WgBXL/9F17XoQdRRoWGdCS1UnJSymgYeYAymRTMY+Se LBkM6+6neyu8SBhgXRJv/X7aY5UvKCSHp7uOIrvJPJ7c/yJThW+D80UkPH24rBZPMuO7 tntA== ARC-Authentication-Results: i=1; mx.google.com; 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 f14si8965817edd.140.2021.04.03.07.50.37; Sat, 03 Apr 2021 07:51:00 -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; 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 S236621AbhDCOuF (ORCPT + 99 others); Sat, 3 Apr 2021 10:50:05 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:32798 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbhDCOuE (ORCPT ); Sat, 3 Apr 2021 10:50:04 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lShaw-00Ee1B-9m; Sat, 03 Apr 2021 16:49:50 +0200 Date: Sat, 3 Apr 2021 16:49:50 +0200 From: Andrew Lunn To: 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 Subject: Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets Message-ID: References: <20210403114848.30528-1-o.rempel@pengutronix.de> <20210403114848.30528-3-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210403114848.30528-3-o.rempel@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -31,6 +96,13 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buff *skb, > __le16 *phdr; > u16 hdr; > > + if (dp->stp_state == 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 = skb_push(skb, AR9331_HDR_LEN); > > hdr = FIELD_PREP(AR9331_HDR_VERSION_MASK, AR9331_HDR_VERSION); Hi Oleksij This change does not seem to fit with what this patch is doing. I also think it is wrong. You still need BPDU to pass through a blocked port, otherwise spanning tree protocol will be unstable. Andrew