From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FF48C433F5 for ; Fri, 27 May 2022 06:43:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343607AbiE0Gnj (ORCPT ); Fri, 27 May 2022 02:43:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243636AbiE0Gni (ORCPT ); Fri, 27 May 2022 02:43:38 -0400 Received: from mail-relay.contabo.net (mail-relay.contabo.net [207.180.195.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27B27ED790 for ; Thu, 26 May 2022 23:43:35 -0700 (PDT) Received: from pxmg2.contabo.net (localhost.localdomain [127.0.0.1]) by mail-relay.contabo.net (Proxmox) with ESMTP id 04AE2105343 for ; Fri, 27 May 2022 08:43:34 +0200 (CEST) Received: from m2731.contaboserver.net (m2731.contabo.net [193.34.145.203]) by mail-relay.contabo.net (Proxmox) with ESMTPS id 2D1D8105316 for ; Fri, 27 May 2022 08:43:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mkio.de; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XWT9BZqZXmDJH0b3Sr6NGmbiTNYnp2+KsEHoW+iaFJw=; b=DZSCFsIM4Bkl/a5SD5PQL0f2dj zI0UBXaw/xoKqs5FYVdpn4Z1EdQ09aLplC3mpGyldrS8roBWyNYHgVnfvxKAPg2ekd6KQrSiBTKJ7 QmCX/YazZfY7SAZ7Xm52RaNpW7qGfkQcStJyjkrn0XeAB4QXmQstYRdaTbKnrL/fCBr4aPFYczQVI Cnq8YaWl6nSBZOVfsQrbpy/ALtvU0W4Ssmmttaf+AYpBQz/NA+x8AweJkC5b980SDHRDGYgD9N4qn OL4JuRH0L93zv3AuN/JmQ6j9j4CN2vAMbcniKIyqmsadU/J5j4aC6mXXKN8jCIUgsC0N/JgfXGa6h JHXxlqLA==; Received: from [78.43.218.139] (port=44766 helo=localhost) by m2731.contaboserver.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nuTh7-008Ohl-RO; Fri, 27 May 2022 08:43:32 +0200 Date: Fri, 27 May 2022 08:43:25 +0200 From: Markus Klotzbuecher To: Andrew Lunn Cc: netdev@vger.kernel.org Subject: Re: cpsw_switch: unable to selectively forward multicast Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - m2731.contaboserver.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mkio.de X-Get-Message-Sender-Via: m2731.contaboserver.net: authenticated_id: mk@mkio.de X-Authenticated-Sender: m2731.contaboserver.net: mk@mkio.de X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Andrew, thank you for your feedback. On Wed, May 25, 2022 at 11:05:14PM +0200, Andrew Lunn wrote: >On Wed, May 25, 2022 at 11:30:40AM +0200, Markus Klotzbuecher wrote: >> Hi All, >> >> I'm using multiple am335x based devices connected in a daisy chain >> using cpsw_new in switch mode: >> >> /-br0-\ /-br0-\ /-br0-\ >> | | | | | | >> ---swp0 swp1-----swp0 swp1----swp0 swp1 >> | | | | | | >> \-----/ \-----/ \-----/ >> #1 #2 #3 >> >> The bridge is configured as described in cpsw_switchdev.rst >> [1]. Regular unicast traffic works fine, however I am unable to get >> traffic to multicast groups to be forwarded in both directions via the >> switches. > >Do you have listens reporting they are interested in the traffic via >IGMP? Do you have an IGMP quirer in your network? Without these, IGMP >snooping will not work. The userspace application running on each device in the chain calls setsockopt + IP_ADD_MEMBERSHIP and peer devices receive IGMP packets such as 7 10.399981403 192.168.178.51 ? 224.0.0.22 IGMPv3 62 Membership Report / Join group 239.253.253.239 for any sources 8 10.399981403 192.168.178.51 ? 224.0.0.22 IGMPv3 56 Membership Report / Join group 239.253.253.239 for any sources and corresponding bridge mdb records appear for swpX and br0 subsequently. Shouldn't this suffice for multicast to work or do I really need an additional IGMP querier? I realize that these mdb entries will expire, however multicast traffic isn't forwarded even temporarily and manually adding the same entries as 'permanent' didn't help either. Thanks, Markus