Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1067925ybi; Fri, 31 May 2019 13:17:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyO2LmPI4PNGn6znS4KVFrylM6tVeUTY8kho9OTUJEeCEhOxG9OXXIWhV+t9QYMrTv95d8+ X-Received: by 2002:a17:902:b204:: with SMTP id t4mr11799420plr.285.1559333879482; Fri, 31 May 2019 13:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559333879; cv=none; d=google.com; s=arc-20160816; b=ix1cUYc3Kau+D4Ey766C8fa+uglgcFRzUI+XIl0oDmP1eYrbRDOsVRhxHcwwZ3xKPC h+DeKeIQcf/U4oie8LVfiwWaJBsUPInO9N3Ivc9GvhFzL4ipypRYZHbjJebvp6byCnwH fVks2QzbrL3nANzakNObBuVtL3CcRaUspBMfmx0osJJxgIz4JZ2lnD5NyotkwIJJabu9 KZSu5BFZTaAXeAsh3d0nOCvKYINVBmFVUIBGW18xa02ZkI4eBTFBHggeDIf4Y3DTwaPG 5uY9mNI9c3wojwww2IwhFeAvJkxmmPI4UfXlIWZCl3nld1Pmlmh37kbgm393XFL0f5Fz SkQA== 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=7YiaoU+6Y9gzcq2vBYFLQx0zIwtw9YAbbdSl0rNCg2M=; b=E6eWrXM/Ry2c6RUqFQ4AKAD+xIo1aBJ69YieibmfM7burRMt7KptCPBvc/Y8rHkNUG sU69Auwcmxs37eiv5uXcJclxxa021ngLK5tT07BQ9f/GUq/nztAxeW7KFvCYdzGLXf6o 7CHHcajyeQROkYfuNXNcBmFGl9hTE9vaVjYvrDR6pujx7oufVia2RoGVXgC6dPX6rr3b Z7kA5wNxLEAlvZzY8zd+tG4Hzk3PwSjmgRRJ3KBWpOSXhrUKk0l/NNg34xxrt75z0ogb XORk8yu4MH+oB73QQiVciyviz3qJwPjc2TXuGnfTcnl72u0sugTgBUwAq8DS5Ejw5LTf vw1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=g+EArgwU; 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 t9si5931164pjw.35.2019.05.31.13.17.43; Fri, 31 May 2019 13:17:59 -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=g+EArgwU; 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 S1727555AbfEaUPe (ORCPT + 99 others); Fri, 31 May 2019 16:15:34 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42677 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfEaUPe (ORCPT ); Fri, 31 May 2019 16:15:34 -0400 Received: by mail-qt1-f193.google.com with SMTP id s15so2431385qtk.9; Fri, 31 May 2019 13:15:33 -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=7YiaoU+6Y9gzcq2vBYFLQx0zIwtw9YAbbdSl0rNCg2M=; b=g+EArgwU7pOQMCYAGsyXpcwc98DQ/tqCpUVrBOAY1+cFw/pFWdq/iSTpswQe5hKCyO Vigqj+LtA8vpdxhu71aPfCxHHKkCRTPeXN/+IEGcwBKWDN0En+oYQWJsqwARpSsFSIWD wWGSDgmUJ7c4SFo0LSTKWK3x4ZO94agxZKGLsfP2bXclFSo+/eFu6g5/95rFkoFBWdiv EnIgTWCU6kDnhxQK3sF6Ss0H1WOfsgI9lVCiJ5u21bAdnLqPSPxN14c1blJE6FCaSrKJ xFD77UaAejfFcPaxgz7+Esu8gNLODVkFNhGW+5UEwpWPLkLAt1L8NaPL2442y+Tq8xOr iyGg== 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=7YiaoU+6Y9gzcq2vBYFLQx0zIwtw9YAbbdSl0rNCg2M=; b=ueq6QjqxPz2LR5Je/5VKRUQI3R9yBsv6oAzElN2/ijGkDUPjc1GfZpyPuWcoPuFIqo ivToPBUmeybcQCfSdCweGc5tmgnE99OctqJdO2PoE7yZzoKnixox3y1uh8B7mphwAQUg AYnv7ZulI4ZcLELLEQl1fVR7RtJWHMAf2h80LWBTSOBkDDbrZRggmmqovzCUXX3ipCl1 NNbmLgJUlGYHFu13qYWwtGQVphpX97LL1dakxDJwTjFn3lQ8gzZ6dn5x+nSrFKuawHyB jw9n0r8ZJzoQonLEsnHbkhDE2Mt1Prl3EFCDztS2BkgMVn/nAmjDXyzUKGuypjVawaQJ EG/A== X-Gm-Message-State: APjAAAWFXL4ROYuOOuWYSO/on6Ve0tjwH4maKZhMfgFFHNh2dnK7+6NZ a+jH+bfODMFwleEDgtDqvNE= X-Received: by 2002:a0c:9934:: with SMTP id h49mr10703909qvd.146.1559333733226; Fri, 31 May 2019 13:15:33 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id c16sm3982118qkb.15.2019.05.31.13.15.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 May 2019 13:15:32 -0700 (PDT) Date: Fri, 31 May 2019 16:15:32 -0400 Message-ID: <20190531161532.GE20464@t480s.localdomain> From: Vivien Didelot To: Nikita Yushchenko Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Heiner Kallweit , Marek =?UTF-8?B?QmVow7pu?= , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy , Nikita Yushchenko Subject: Re: [PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0 In-Reply-To: <20190531073514.2171-1-nikita.yoush@cogentembedded.com> References: <20190531073514.2171-1-nikita.yoush@cogentembedded.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 On Fri, 31 May 2019 10:35:14 +0300, Nikita Yushchenko wrote: > 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 Reviewed-by: Vivien Didelot