Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1969818pxf; Sat, 3 Apr 2021 06:37:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzscWRLhAF1NuVabnKgJGOin+M+AHm4FAHchPT+GuO5aNUYFB0rWbbGxYN8pTfyjrnykF5N X-Received: by 2002:a05:6402:888:: with SMTP id e8mr20683544edy.51.1617457035819; Sat, 03 Apr 2021 06:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617457035; cv=none; d=google.com; s=arc-20160816; b=yRTiORQGOndFNTYH5pd4VGoPZW/7+2F4O5RYcmnOU0OrSaQq2HxZ9AOJ4un+xc3onx UB7qRIpCFA/llSSl265HEXO0q9B6MNBqBSjNhTHjLAAILf1jPCoM69xyE+oeXtsZ+SWu pbBqF1WbDVCMLU6mvk0QNPlYfRCXTmerC/FcCLJB2pwGAb4qh357A6Q3jyuBfsBTLYcM s22J6g6qO2km7a4GDVAsimTcLTkO2BB/Jnui0Ka/rBNXpczP61jPCFqSeGKTpk4iHA49 bypK53JhzsnISgvMhyO26KeigBBQNDL6gvgSPvLtcZ7m6QmmNNdkwisW7kPc+4MGsYwb ZUHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=SM4KOLgww1ncb4qPyvMzijuHBgGbWP6p4Ely8HfUmvI=; b=BLv0PcplcqGvAAk+hyFbUhN5hhuPwS4EkH7X6lN+fTbrdiKzbynsbJTbBTYShuHwFF 828X6O362Q6YvOQ7awdqd/1Qoty36WhacK1GndybNJvRNXoeuKPKtCRCCRtYcB8QQpJe X6x4OcMf8VlI0MgUxxvRoCLnGKUrpL6L4LU4CWLkqmla19vAV2zCE9iP0/pfo50dw+BB EJqTz8ZGRQ8f673IcChSJl53iT2wdA/gcDWnlJNSmBszhYjjJFT4BUb70RoborDYYM0b ohM0e3XyS0V0fiCndFU7K6PmgW7zevMaxbmcqC1pEewYfWWJ+gMJqC4qeNEHQ9DQDr5L VpaA== 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 de6si8603102ejc.467.2021.04.03.06.36.53; Sat, 03 Apr 2021 06:37:15 -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 S236724AbhDCN0w (ORCPT + 99 others); Sat, 3 Apr 2021 09:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236687AbhDCN0u (ORCPT ); Sat, 3 Apr 2021 09:26:50 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D04C0613E6 for ; Sat, 3 Apr 2021 06:26:47 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSgIR-0000ze-EP; Sat, 03 Apr 2021 15:26:39 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1lSgIO-00064V-9v; Sat, 03 Apr 2021 15:26:36 +0200 Date: Sat, 3 Apr 2021 15:26:36 +0200 From: Oleksij Rempel To: Vladimir Oltean Cc: Andrew Lunn , Florian Fainelli , netdev@vger.kernel.org, Russell King , "David S. Miller" , Pengutronix Kernel Team , Jakub Kicinski , linux-mips@vger.kernel.org, Vivien Didelot , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v1 2/9] net: dsa: tag_ar9331: detect IGMP and MLD packets Message-ID: <20210403132636.h7ghwk2eaekskx2b@pengutronix.de> References: <20210403114848.30528-1-o.rempel@pengutronix.de> <20210403114848.30528-3-o.rempel@pengutronix.de> <20210403130318.lqkd6id7gehg3bin@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210403130318.lqkd6id7gehg3bin@skbuf> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:23:49 up 122 days, 3:30, 32 users, load average: 0.17, 0.07, 0.03 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 03, 2021 at 04:03:18PM +0300, Vladimir Oltean wrote: > Hi Oleksij, > > On Sat, Apr 03, 2021 at 01:48:41PM +0200, Oleksij Rempel wrote: > > The ar9331 switch is not forwarding IGMP and MLD packets if IGMP > > snooping is enabled. This patch is trying to mimic the HW heuristic to take > > same decisions as this switch would do to be able to tell the linux > > bridge if some packet was prabably forwarded or not. > > > > Signed-off-by: Oleksij Rempel > > --- > > I am not familiar with IGMP/MLD, therefore I don't really understand > what problem you are trying to solve. > > Your switch has packet traps for IGMP and MLD, ok. So it doesn't forward > them. Must the IGMP/MLD packets be forwarded by an IGMP/MLD snooping > bridge? Which ones and under what circumstances? I'll better refer to the rfc: https://tools.ietf.org/html/rfc4541 Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |