Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp956251ybi; Fri, 31 May 2019 11:20:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIRiPc9H6q9W8fS5PqEL2bdC5OrPDyIfLfKMIbwcpZSrxppLjxDeqsAlpoEjVq+KXqfhwM X-Received: by 2002:aa7:90d3:: with SMTP id k19mr11539065pfk.1.1559326839394; Fri, 31 May 2019 11:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559326839; cv=none; d=google.com; s=arc-20160816; b=Agzxxevx5gh8+osdsdFjdv4vf3ef9WNZM4n/nOqLG52qExUu790iZCCLBW1tDjZ5Lt ZiTTjdyt7fAEBIepBj90EngjXYzPO3KBGzsE+RpVnN6UsqGRB71blu4JtsX1INUtw+qe JIdypraWy3Nt3Mc2/PYdpDqNd/wyLo+8kPUYcH67IeCtSEXDvgKg6WJFQn27xfYLGg0i hgmgZeanuqxhqjwkAcpJnEAF4d+0k2v6X4+b2hE8r9oZLvdquutkgwjEPZbzag2yrbsB o59ueiektxgB/V8jg0SSw4RuT5GV72ITDiTvM24kMqC2SRV47Eae7dTJN9o68KhxXA2C EJXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=TKc2cnZBuMVtSbHdM0Wpd2V3p1InwFaduQoNzQ9VIN0=; b=dkbXjTyn/TP8hOG6ZJCQP0DkfS2vBmRRubNvXbBig867fs/BVUGDNmb8RIVZra4l85 6zArbd3bIgXS/4ROGv3zIv4LhpkVqygc7Jvdb47/8VNFwxGMKvy3YCsBhX46SHLl6EEn mfZN3cjvBpG3E+87KhwV4tsXbDIwpU6tsec/lHLICBQmmbP7X3x0CEZOnlw8AcxzIbAN CnpmeGhEwhrLocK5uZv2WH2eX+hP/iMQjzCRKWu/YjdNm9FVVAEV07DN1fgtv6VLIlQi ReGOoRXBvbp7KJGKS0acxlRqUyXWh8w3ISgovKvTQGsmmacuq90ZXU5eINunJq+0py/4 NxhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I4Lvm4I+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si5370933pll.438.2019.05.31.11.20.23; Fri, 31 May 2019 11:20:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I4Lvm4I+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727054AbfEaSTQ (ORCPT + 99 others); Fri, 31 May 2019 14:19:16 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:34603 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbfEaSTQ (ORCPT ); Fri, 31 May 2019 14:19:16 -0400 Received: by mail-qt1-f193.google.com with SMTP id h1so2056907qtp.1; Fri, 31 May 2019 11:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=TKc2cnZBuMVtSbHdM0Wpd2V3p1InwFaduQoNzQ9VIN0=; b=I4Lvm4I+LbtJLFQaAb2ijuRWfxN+nPP6FZPqOloSKu4AVsldGV3VJKYlCzMWo1k/qy wPIOJdnSjBq0kr5BwkqIwJEetcGKythEk4VcfoV+ENOl2qtdpMrL2E0gjRyxiqCa5hlZ op/8N8Lr93Vvwzh0OAb6OPLI2VhNsTM5Znky7YD4h2bMUoqC5grDBiBDshXOv+BtL9CE 0l47vWAZ+CGPPQGGRkFWD79PXQYKjUaJzAESDCNFC9i5VF3LgDukSac7/4EuSZ85GYZ9 C/XqCn+LEZLkLdLfuPSYBYvB1/2+IoOqJZuJrr2Ezv2YpgRvjUVNCp7XKRQtomlBlq6n eSzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=TKc2cnZBuMVtSbHdM0Wpd2V3p1InwFaduQoNzQ9VIN0=; b=qt3jP9OKv5TFqvA1869HEpQjVXkD+pdHXuK4HfFK5Z+hlQph7guqAGScmYr0syMOfy 7lfEP4F3+ErDg6CRcy++5wUZIMdmNmPenG5wpEoZtMDARHCcQJRFRgXfoTWD8do2PPA+ BhlM+8XQUT72CBfAvO9FvdNoGutbD2NgBF5orCVhEZ/XRcPjnRoqb4wuUVeG32Ufjq21 0lA7EFRHGHQXX/0zSybgEgg9OK1xaNvC5bi7R5bXevn5Xu/MSWIDWwcAu98IXAeghwT9 ZjTDThKylkFNEf3Vw3nz8rnB+GsUWbRrrf0emQcBT3xGmq17XAKCYl1Wastp5xAanJcU tqAg== X-Gm-Message-State: APjAAAUiC/4xfN4JA8JvW0TCICnbtPQByuCoF1mntmREB8tSeUQlz4rN Hi9PuBSLkURioG0OEMqBZGI= X-Received: by 2002:ac8:28c2:: with SMTP id j2mr10348317qtj.103.1559326755427; Fri, 31 May 2019 11:19:15 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id t187sm3475783qkh.10.2019.05.31.11.19.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 11:19:14 -0700 (PDT) Date: Fri, 31 May 2019 14:19:14 -0400 Message-ID: <20190531141914.GB26582@t480s.localdomain> From: Vivien Didelot To: Florian Fainelli Cc: Nikita Yushchenko , Andrew Lunn , "David S. Miller" , Heiner Kallweit , Marek =?UTF-8?B?QmVow7pu?= , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy Subject: Re: [PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0 In-Reply-To: <38a5dbac-a8e7-325a-225f-b97774f7bb81@gmail.com> References: <20190531073514.2171-1-nikita.yoush@cogentembedded.com> <20190531103105.GE23464@t480s.localdomain> <20190531143758.GB23821@lunn.ch> <422482dc-8887-0f92-c8c9-f9d639882c77@cogentembedded.com> <20190531110017.GB2075@t480s.localdomain> <38a5dbac-a8e7-325a-225f-b97774f7bb81@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On Fri, 31 May 2019 09:36:13 -0700, Florian Fainelli wrote: > > But VID 0 has a special meaning for the kernel, it means the port's private > > database (when it is isolated, non-bridged), it is not meant to be programmed > > in the switch. That's why I would've put that knowledge into the DSA layer, > > which job is to translate the kernel operations to the (dumb) DSA drivers. > > > > I hope I'm seeing things correctly here. > > Your first part about the fact that it's the port private database is > true, the fact that it is not programmed into the HW actually depends on > what the switch is capable of doing. With mv88e6xxx you have per-port > VLAN filtering controls, but other switches that do not have that > capability need to program VID == 0 into the HW to continue maintaining > VLAN filtering on a non bridged port while a bridge has enslaved other > ports of the switch. Are you saying that switches without per-port VLAN filtering controls will program VID 0, and thus put all non bridged ports into the same VLAN, allowing them to talk to each other? Thanks, Vivien