Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76038C43381 for ; Wed, 20 Feb 2019 12:36:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4204F2086C for ; Wed, 20 Feb 2019 12:36:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="s7mEnAka" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbfBTMgY (ORCPT ); Wed, 20 Feb 2019 07:36:24 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:58918 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfBTMgY (ORCPT ); Wed, 20 Feb 2019 07:36:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y/shQLFoXirc7iBRH1OfCOVmkOTmlb4vM0QL9nU20zQ=; b=s7mEnAka+O3ahLYD/StOAGPIW bdkC5x57tVVQY3dunRZYjyMV3TYsZj10DP+6EvBOrfoEYP2y82fLupaCrdX5oNVQnHU58Q3gujTof Wq5GTWtKYjIffgNwo85gWnxfJTNlGRxGVfdh2820KQdzeX7vdYAh3TrDnxkuA/bo7plhrqktIlQyv 7iJoh++/QeWy55ciH2JNN0nD3EwEsAUiuK3CcDIUXM6l2rZvFwfLkAMwcUCxE/iAZeWDboZ9zlAOv L7sojVfhuiuesviFC9ZlqBUm+W+mEjkbETH87A+aXBycVpyM5Dr5zVb/EDcbPiLiKuzB7OTk4SZah DERMmviOA==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:54614) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gwR6o-0003xo-Gs; Wed, 20 Feb 2019 12:36:18 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gwR6m-0000Q9-2Y; Wed, 20 Feb 2019 12:36:16 +0000 Date: Wed, 20 Feb 2019 12:36:15 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn , Florian Fainelli , Vivien Didelot Cc: "David S. Miller" , Heiner Kallweit , netdev@vger.kernel.org Subject: [PATCH net-next v3 0/3] net: dsa: mv88e6xxx: fix IPv6 Message-ID: <20190220123615.fcyrlhz5jpx5ecgv@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We have had some emails in private over this issue, this is my current patch set rebased on top of net-next which provides working IPv6 (and probably other protocols as well) over mv88e6xxx DSA switches. The problem comes down to mv88e6xxx defaulting to not flood unknown unicast and multicast datagrams, as they would be by dumb switches, and as the Linux bridge code does by default. There is also the issue of IPv6 over a vlan that is transparent to the bridge; the multicast querier will not reach inside the vlan, and so the switch can not learn about multicast routing within the vlan. These flood settings can be disabled via the Linux bridge code if it's desired to make the switch behave more like a managed switch, eg, by enabling the multicast querier. However, the multicast querier defaults to being disabled which effectively means that by default, mv88e6xxx switches block all multicast traffic. This is at odds with the Linux bridge documentation, and the defaults that the Linux bridge code adopts. So, this patch set adds DSA support for Linux bridge flags, adds mv88e6xxx support for the unicast and multicast flooding flags, and lastly enables flooding of these frames by default to match the Linux bridge defaults. drivers/net/dsa/mv88e6xxx/chip.c | 19 +++++++++++++++++++ include/net/dsa.h | 2 ++ net/dsa/dsa_priv.h | 2 ++ net/dsa/port.c | 28 +++++++++++++++++++++++++++- net/dsa/slave.c | 6 ++++++ 5 files changed, 56 insertions(+), 1 deletion(-) v2: fix a couple of compile errors in patch 2 and patch 3 (oops). v3: change interface between core DSA and drivers -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up