Received: by 2002:a17:90a:202a:0:0:0:0 with SMTP id n39csp3600263pjc; Sun, 2 Jun 2019 14:01:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIc8Vs1K+GI836SchQlPT3MPM7vI+JGqiKlJnztc0qNAJeJoP97m3R4W1o10PYoBuXh5pO X-Received: by 2002:a63:6f0b:: with SMTP id k11mr23863988pgc.342.1559509306459; Sun, 02 Jun 2019 14:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559509306; cv=none; d=google.com; s=arc-20160816; b=jEEjzXUAHAZW8Hc3xNxSPTiC3+wA4bMStSFGAK/gU/zvNyJN/nobl8guAmgNnOicWF J300awutnR+sIlqL7scyUOTKGgjYNRhjSUh2+T66C1V37HhoJGoPRr5T1OHVHH5y4Hb5 YmREHUbw4G+YvmxX1QNNiTJBklTrE9MaCF7AwSjIjt7W/IioSDp2G+uO5CRMNCR9mRoN Qgv/syey2YXHYppI2olXeU++ai/nhLUB6ejRE7dhnRjwNJYUsE+8evaw+Lj302KdiQ7f nt7rZC7A+tP6YpX+9FMbxC46Yp01twBkOQ80N9IH3Jhdid7bGtFoAXZrvymMSvbOZQ4Z hMoA== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=MTpMzu6p1mfsYE6AN8xVREEA0rjHOr0ZIT6GdTJcLeE=; b=pLpVIOj1f5w98mHrNSGQg7RWTeqg0TCSBAVD5/UdZeHBw+lOE89JYACxIlD5KeDFAz lpPTCL5mhzOnL/SDHJfhWA6+T02vmYZhzzJUwle7iljIYjxvx/hbaYbRi1x9BzT6hKJ5 giz7lSkJ2m62IzGRbCV7CFmASdTTOrgm9up+FO58+7e61fg2hX4gn3snM8GWBTZwGhHt oBRrjaeL5+fm2jqyeyX7wWX7uznY4EccK4vmYemUrvyXgIZ5HEcFgrvcEgcnFrt3sFxg PJjyyYCLt5ke1p0krFL4v0kAWvXEE2p/KA8dq00jrSq0SnBBuamfyLlV5+Hg4nTcRU4T EhyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si17808881pld.110.2019.06.02.14.00.02; Sun, 02 Jun 2019 14:01:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfFBUyT (ORCPT + 99 others); Sun, 2 Jun 2019 16:54:19 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:48372 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfFBUyS (ORCPT ); Sun, 2 Jun 2019 16:54:18 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D35961411E114; Sun, 2 Jun 2019 13:54:17 -0700 (PDT) Date: Sun, 02 Jun 2019 13:54:17 -0700 (PDT) Message-Id: <20190602.135417.1658688470668746683.davem@davemloft.net> To: nikita.yoush@cogentembedded.com Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, hkallweit1@gmail.com, marek.behun@nic.cz, rmk+kernel@armlinux.org.uk, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cphealy@gmail.com Subject: Re: [PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0 From: David Miller In-Reply-To: <20190531073514.2171-1-nikita.yoush@cogentembedded.com> References: <20190531073514.2171-1-nikita.yoush@cogentembedded.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 02 Jun 2019 13:54:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikita Yushchenko Date: Fri, 31 May 2019 10:35:14 +0300 > When non-bridged, non-vlan'ed mv88e6xxx port is moving down, error > message is logged: > > failed to kill vid 0081/0 for device eth_cu_1000_4 > > This is caused by call from __vlan_vid_del() with vin set to zero, over > call chain this results into _mv88e6xxx_port_vlan_del() called with > vid=0, and mv88e6xxx_vtu_get() called from there returns -EINVAL. > > On symmetric path moving port up, call goes through > mv88e6xxx_port_vlan_prepare() that calls mv88e6xxx_port_check_hw_vlan() > that returns -EOPNOTSUPP for zero vid. > > This patch changes mv88e6xxx_vtu_get() to also return -EOPNOTSUPP for > zero vid, then this error code is explicitly cleared in > dsa_slave_vlan_rx_kill_vid() and error message is no longer logged. > > Signed-off-by: Nikita Yushchenko Applied.