Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp157127pxb; Mon, 2 Nov 2020 17:12:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWJzJyxfJqsdHDQ+27ZCtntpMjWuPG5sTVjT+IEL8rTvSHfypSqNdLzjnP6oBqM2jjZlSP X-Received: by 2002:a05:6402:8cc:: with SMTP id d12mr19401101edz.134.1604365952672; Mon, 02 Nov 2020 17:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604365952; cv=none; d=google.com; s=arc-20160816; b=V852R3uZ0b4tUrCrUozYAzB29gN8yQyO+De0VtR8er2dfVrznQGPyzGR3kdV2JqPp6 QH3KyYOxNz+Bi1988ohhB+WI99RFgdqFNUkqEiYGoTc2yKVkQ2iuPWi5sdjRiaqPKIKF 8pYx2EtXUwN9TZNHw7PAtjJLZtFOeTw5gzaPi7DN3QfIe6PXFyTeWxTZEXFLn5K9jcF6 L57BNAKEZg5hoikEH2GZUUDXofWQ3vGDrEzu9+2eIbSqkwPUzYLgb2iBWIq3O1UJmjiW s4s0s8wtGKfsgQfYTMr24DDRkH5HOzJi/YbjSH1Z5Qds5YuhYWMT8ZiXP9JlEXuRGOSg K0hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ok70AZ/GfmTBrmmIKX1Ipa6upNBCG+LrzlmdfiBQ394=; b=T+7vNfi/zGEgqcnHK7du8ic8iomHCOBu/EXqt73Vth22WPA11xEhhphiNsWMWWk0Ha X1K11meNCo8FXNqhq08C3B31ieIgSslc75K7PZqq/LMH19VYuCse6qxNlGZ+v1sd7S3D a9VZj6WltoeWi+ifBKuadUpq3N83Z5O3SfHlNl942ASEa/7RcZPR3H/hbHuAIRxzN4FD 0G34sJly6t7LgpARCPaz6zJJnI6EkbICfSOgJ2sI8eqvsoo/5Z+WFsji6wpo8HBOXjFh 0Xe3masYq2nRdVd218VsgaMU+bp/MPsu4M72QaZu7Ex1gJgQJa/Lkhq3KlTQK5xh0g1T 0Znw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="vKe/ZuC3"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si4287022eda.321.2020.11.02.17.12.10; Mon, 02 Nov 2020 17:12:32 -0800 (PST) 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=@kernel.org header.s=default header.b="vKe/ZuC3"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726560AbgKCBKq (ORCPT + 99 others); Mon, 2 Nov 2020 20:10:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:59028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgKCBKq (ORCPT ); Mon, 2 Nov 2020 20:10:46 -0500 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63EB122243; Tue, 3 Nov 2020 01:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604365845; bh=oC4/hbxNLi824qt/a+010PVAliecNxBJFV/NBqYByVk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vKe/ZuC3UHtqyNUNzLMQ6GmWDL6NML7bxIDcHAoyuAkjH7G+WTBpnhFbathtOoGRG wN97erjfuboWxvjkUhFXFKr4bIcTXF+l9ZTx6LcYXJhBaFFe/7sIqBJUMRILaJGIMk +PC3A0wGSctFoh5myoBS48u9B/dKyX4U1oRna7tU= Date: Mon, 2 Nov 2020 17:10:39 -0800 From: Jakub Kicinski To: Vladimir Oltean Cc: Microchip Linux Driver Support , Claudiu Manoil , Alexandre Belloni , Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 0/7] VLAN improvements for Ocelot switch Message-ID: <20201102171039.654adb36@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201031102916.667619-1-vladimir.oltean@nxp.com> References: <20201031102916.667619-1-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 31 Oct 2020 12:29:09 +0200 Vladimir Oltean wrote: > The main reason why I started this work is that deleting the bridge mdb > entries fails when the bridge is deleted, as described here: > https://lore.kernel.org/netdev/20201015173355.564934-1-vladimir.oltean@nxp.com/ > > In short, that happens because the bridge mdb entries are added with a > vid of 1, but deletion is attempted with a vid of 0. So the deletion > code fails to find the mdb entries. > > The solution is to make ocelot use a pvid of 0 when it is under a bridge > with vlan_filtering 0. When vlan_filtering is 1, the pvid of the bridge > is what is programmed into the hardware. > > The patch series also uncovers more bugs and does some more cleanup, but > the above is the main idea behind it. Applied, thanks!