Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp231283imb; Thu, 28 Feb 2019 22:15:28 -0800 (PST) X-Google-Smtp-Source: APXvYqydDqiNfcmF4l0jSTGeJnsu2UJbMBKq8P0FNkROkukWHa27oR+YFZelZ7F/B1NGpdgC+HbO X-Received: by 2002:a63:c307:: with SMTP id c7mr3289648pgd.386.1551420928446; Thu, 28 Feb 2019 22:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551420928; cv=none; d=google.com; s=arc-20160816; b=VptJQEYIcl2R0CyPFHXqjfNCBxH0UY0tOGkcvMcdY7yoNqoIggqxuE4oHt3qN7alh8 LAULMpR0ofXtcVj729HzUypn1L24gHtbAJvIhYZS6TH3eRPkH+0gDfAXChhX9umoNnGX KUjRQurUMApODQ+GDPLGUKJYKqJGvW+SrqmJZwNNeZgy2Y+9VEfAqmxjN06IZa58In2r iqqvygqtneeNPMPm5U6UkJTGD6Mk82iKVP+BpPADzSRGsrGjYvV1oejfoKUynzce+mq+ X3ZYCwVFOuZxh+vrBGkPBCcrFP9BLiWqbcoX2Js/FzYQgxBLTF4kywnXbJ3P/l7MGsKf XWbA== 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-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3hrOvMc/dHsF0cKTdHsaUq5CcAAmDBiIrKb884PG+uo=; b=fcPmD8HKD5HTGRXEUhTy/rv997KRoUQFupngPd7emgpmhyXPlP7NRHfX2gYkah+mO+ D0Fz9/snk6uCIaTSzbmLb4YtdYXYIue7DlVV5FThXNzm2Kjxtnqjd4FavD+Bct+TGbd4 z4ElaBirA56f/wLzoQ7GAzPs7XeDGtkWuxmpM9O/0lntnlVnZZUL6Ax1NlfKEm5LJE02 3EdCR6y+yi5srjPRQBOuTP3kgX4o+cHxWqKO7VLIDZoORLdHrAj0VUuWexiiU8xEB13l mCBrsEwfAqdI3emSL/Nr6fbmmaGV8QeGNKsdQOEiAWSD1W0D2/RgJUqChBFGHPcG58xd vKJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kdm5fSxQ; 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 m3si14857638pgq.343.2019.02.28.22.15.11; Thu, 28 Feb 2019 22:15:28 -0800 (PST) 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=Kdm5fSxQ; 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 S1727492AbfCAGOt (ORCPT + 99 others); Fri, 1 Mar 2019 01:14:49 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34787 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfCAGOs (ORCPT ); Fri, 1 Mar 2019 01:14:48 -0500 Received: by mail-wr1-f65.google.com with SMTP id f14so24547127wrg.1; Thu, 28 Feb 2019 22:14:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3hrOvMc/dHsF0cKTdHsaUq5CcAAmDBiIrKb884PG+uo=; b=Kdm5fSxQ0ShxSXDg0MH+MMVERjxtsfKIoDySYsnUtfQJEJsDWt/HB5tvP1E8p/OnQx d2Rf6GjxXRs7KYbZF2ke8kcODAE6MM5XmOntuMX21lG1nrp5+AOfzOQ25r5r8fmznH89 NDwMD+1ekhzJ8hkbIe475iRrFo6D9av+mLbHn2q8VxX3nymBahDaSnX5nGLrt5rFWHn9 3Pd2pWvbWPeC6o46/hrOo1FgaVSBXn/KLV8rcasnlNiJe7sqn3jqLHpo74Ej28aptz9S nO32IC+7JB4F11Ip43ESJI8nWUh6jgI7oQkeJlIIMm1sBduRsRjrKH0XWagVRrMR/kNx ZTpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3hrOvMc/dHsF0cKTdHsaUq5CcAAmDBiIrKb884PG+uo=; b=PLpLjefymJMa1d32eFSxRwNgfN+psBoaMM70QUwSUPzex6bA4e29hL5uBQejKElwWo v+ZUAY8jLYWwwpRmUmm+rcAHVPecgb6DxhKpX2h//sr3XHtNvyAVyyQqEUqJI//aww6P uhh0mQZTafrJsqtPp0f7Ttm0cRNQWxClo+wHHemrjyoBSZIA3IMB6YeT0XzlNQfDYGIC 85za5PkLJQV+wOhWvkKcHnzHx+NZ0os7/1FEhRDQDClw+3TdM5jBf2CYo3EK9pd1FSZJ Hypgoeuclow7fNcHPKP6cVG13GKnkiOS38YQmqtBM44rq6FygjdjQrfqhwQPCO+IpAwh nnQg== X-Gm-Message-State: APjAAAUECEjCu79/1FEzxdaMyYdXoNz5kwjNej6RT8vvSFWdpaAErG6S vhRslFyDxwJByH4d02MrxKLWxCVD X-Received: by 2002:adf:b784:: with SMTP id s4mr2008912wre.155.1551420886169; Thu, 28 Feb 2019 22:14:46 -0800 (PST) Received: from ?IPv6:2003:ea:8bf1:e200:81e8:1756:4872:e46a? (p200300EA8BF1E20081E817564872E46A.dip0.t-ipconnect.de. [2003:ea:8bf1:e200:81e8:1756:4872:e46a]) by smtp.googlemail.com with ESMTPSA id v18sm25806193wrr.90.2019.02.28.22.14.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 22:14:45 -0800 (PST) Subject: Re: [PATCH net-next] net: dsa: Do not configure VLAN ID 0 To: Florian Fainelli , netdev@vger.kernel.org Cc: Andrew Lunn , Vivien Didelot , "David S. Miller" , open list References: <20190228234936.1593-1-f.fainelli@gmail.com> From: Heiner Kallweit Message-ID: Date: Fri, 1 Mar 2019 07:14:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190228234936.1593-1-f.fainelli@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.03.2019 00:49, Florian Fainelli wrote: > Because we skip the prepare phase, we would not get a chance to have the > port_vlan_prepare() callback return -EOPNOTSUPP and tell us about that. > This causes problems with mv88e6xxx which specifically checks for VLAN > ID = 0. Turns out we do not actually need to program that VLAN ID since > it should be the default one for switches anyway. > > Reported-by: Heiner Kallweit > Fixes: 061f6a505ac3 ("net: dsa: Add ndo_vlan_rx_{add, kill}_vid implementation") > Signed-off-by: Florian Fainelli > --- > net/dsa/slave.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/net/dsa/slave.c b/net/dsa/slave.c > index 1808a2cd6872..ec54d579645a 100644 > --- a/net/dsa/slave.c > +++ b/net/dsa/slave.c > @@ -996,6 +996,9 @@ static int dsa_slave_vlan_rx_add_vid(struct net_device *dev, __be16 proto, > struct bridge_vlan_info info; > int ret; > > + if (vid == 0) > + return 0; > + > /* Check for a possible bridge VLAN entry now since there is no > * need to emulate the switchdev prepare + commit phase. > */ > @@ -1029,6 +1032,9 @@ static int dsa_slave_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, > struct bridge_vlan_info info; > int ret; > > + if (vid == 0) > + return 0; > + > /* Check for a possible bridge VLAN entry now since there is no > * need to emulate the switchdev prepare + commit phase. > */ > Tested-by: Heiner Kallweit The error has gone. New with the original patch is just the following message in syslog when bringing the device up. I'm not sure there is benefit in it (at least for VLAN 0 because it's a no-op). 8021q: adding VLAN 0 to HW filter on device eth_cu_1000_2