Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5620020pxv; Wed, 7 Jul 2021 07:59:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUl88cvzWR0IcktAlYJqlHaX4FPbwhNOUY/Iwn1mNPCcFd/8BSrwIkygJLmjvDM/C2TToj X-Received: by 2002:a17:907:1c01:: with SMTP id nc1mr23837993ejc.504.1625669964669; Wed, 07 Jul 2021 07:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625669964; cv=none; d=google.com; s=arc-20160816; b=08wAgcCny2PfSn4qO/3DPwjx7rDlnuE+0lyJwKwNXei9abeCNh20af/myz/bksNRHv Tf14ix4ba6tGKwqXxq6MsCjeMDn4dAXkJefXjaD32pFsfixAuhH/l/7V0uhb5QSDxFOD wx/TyAOkaT5JRCfMNsCguf4wQ4mSyIC6ZhmWTgswxJuBPtXCBDZJ6ENJ+hP5ZSMUIQ5F Jxj1ucOh3MHUWBYSfZBEsxaA+vcrbB+DRcF7jyvmBtAYMnUWwI7aaWkVVoRPBNuAhzqx oXXQmjE5VdJUT7ZTTvgL08hoSxK366K/7yxCQBXYtVO+14J+JIP/61HJBTLgH4l/GtoB Delw== 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=ozqjo23XDuJtwPCl6/VAR5AvRQRfRAP7QUcvNp2ZFp0=; b=iGte1dzQplXZr9LmHozr7pQ2JPuG3EYsnuZsy/xNGCXiidTvNU9SsXo290RASPeeMr QExrNVBm6KBpAy8yhHZLHgWbGwdOFkjmZVwh1p5v0CuyfpDsp4cVUBs/hnwft8A3DBvl bfx/Qr3lcTg+BeL/MukRIg9BVu5EVElRtkdLuxHEGPDCdPAMYEqOcv/dU2odrESuUpXo f74Ijcw6mJkpKiuHIKMkb+IIDvuhZGQ3xg0qwniQvPOmSLdfJKvCea+FiGbLsvYQ2vNL es+AnOXg4hzV4oyu1dwn4Mkq1p3YjUzZA9dMalQPsmuTmYYkqc5DOpGGFoQXMyjNsY24 VMxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=GbljNL05; 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 rv2si15105ejb.569.2021.07.07.07.59.00; Wed, 07 Jul 2021 07:59:24 -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=@lunn.ch header.s=20171124 header.b=GbljNL05; 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 S232269AbhGGO7Z (ORCPT + 99 others); Wed, 7 Jul 2021 10:59:25 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44600 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232158AbhGGO7U (ORCPT ); Wed, 7 Jul 2021 10:59:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ozqjo23XDuJtwPCl6/VAR5AvRQRfRAP7QUcvNp2ZFp0=; b=GbljNL05qZJgr33DtPFXT1vioW lZmYvGrIzcpCLl+vaKHCkvw4ZCDxnfe13Lg0ssPfecHvset9QecAi7NynCXLh7Nqb3v1WDesnJ3nM uGvqw38u58X948GQVMCoaXc6KGo9FruGm40kHxb0XmgXJWOkRMCknS+o4C+OIynZQmGk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m18yP-00CWwo-2s; Wed, 07 Jul 2021 16:56:25 +0200 Date: Wed, 7 Jul 2021 16:56:25 +0200 From: Andrew Lunn To: Callum Sinclair Cc: "dsahern@kernel.org" , "nikolay@nvidia.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linus.luessing@c0d3.blue" Subject: Re: [PATCH] net: Allow any address multicast join for IP sockets Message-ID: References: <20210706011548.2201-1-callum.sinclair@alliedtelesis.co.nz> <1625623229789.98509@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1625623229789.98509@alliedtelesis.co.nz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 07, 2021 at 02:00:29AM +0000, Callum Sinclair wrote: > Hi Andrew > > Yes I want to receive all multicast frames.This is to configure > a userspace switch driver to prevent unknown multicast > routes being flooded unexpectedly to all switch ports. Don't you just need the signalling, not the data? Also, netdev is not friendly to user space switch drivers. You should be using an in kernel switch driver. So we are unlikely to add an API which is only going to be used by a user space switch driver. If you provide patches to mrouted, or frr pim routing daemon which makes use of this new API, it might get accepted, and then you can also use it in your user space switch driver as well. Otherwise, i would suggest you keep to the existing APIs, BPF and pcap for example. Andrew