Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp247113ybi; Fri, 31 May 2019 00:29:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOAhxRTQZFRbv9o+7ObJ7goZbdVnIlyKKXPJ3BS5Jo3mwRXk7qdnpULHrut7+q7fP+uk7B X-Received: by 2002:a17:902:2beb:: with SMTP id l98mr7471025plb.290.1559287781337; Fri, 31 May 2019 00:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559287781; cv=none; d=google.com; s=arc-20160816; b=VWJCQQJ4h22LS3eOuPoqkrZ7tdpYgrnc0ekvy3KIR13nViEGWDip0lRXSJht00ktCZ j6/qA7Ml/AExw9cMFq5XHlE8YA/yNQT69/7mqS/qLSjmZp8xnygJfG+pcFfNOETxoL3N xA7rbC6daU57DTh6PSD5LhcUrSV2d2D5SKtn3QoxLwUc121pKMGFq5Ti8T/HnjnUtNEf JABd8vKtIwy5lWQZQ67oocisFnm6wV3dt3Bogaj8RVZcqW7n2lh/ip3G7tOIBwHkwWah bZNSKB7C1jsqJgUWyfvhuKTYNRaIfFAgRHxnlJs7xbs4l6OW0ITw2W7vklDsH3vfud8h cdFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=349bO3eKWo36+YLW2izUvQ+NabomJ8/oiHBTBWo5iAw=; b=Z/v7TqWuFQkML/Y9PdzKnRhQrpQRvfLhNO9HKKogM9FhNdwzCw51cABK512GEw60xZ zTSH3XKYr22vQflimeTm5DXHuoK0sRJPPVYOihxH0rQCSaWAIZ5H2NfJNCr4fGQriOzH MAeZRVtFtZta5B32oyxn4XuLfI+4yHAzaCzeO0MMhAzQ8B9Qy08KowvTgkDyfaNqkeE8 h4epYxhUTyoXxl+9QZwIxkvAgoMbgJyVIUJVZhv7RdQayvIVo59wLxVseT8ll7lbM4Dd VVQBXhn/JCGlzkyG9JAGokKF/eahoJVBm8NnRIAK4G7FoXmAoxaHcKAfrv237j551yum TSSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=mcpXksvN; 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 u9si5074774pls.145.2019.05.31.00.29.25; Fri, 31 May 2019 00:29:41 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=mcpXksvN; 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 S1726853AbfEaH2P (ORCPT + 99 others); Fri, 31 May 2019 03:28:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42883 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfEaH2O (ORCPT ); Fri, 31 May 2019 03:28:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id l2so5751743wrb.9 for ; Fri, 31 May 2019 00:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=349bO3eKWo36+YLW2izUvQ+NabomJ8/oiHBTBWo5iAw=; b=mcpXksvNecWmEad6A9O9z6z4TbMSb38IaPy5U9xh/ChgB21Cn7Ccj8gUOXoFOHUIVr 8mNjkfFvOSL0xKKy7NQH8LCQa2sP7PeOiupRiyM38ynt6Y0bt4awXv+yW1K7Pj0ySX8C cfSPhYYQ8mjrwUcIVOraaVm5DNxJdZjn+gsP9OkOJXYwVd1D+iAX+kvUz8bDglVqrIFb ZFNBy0lMWFCbgNTyED0DxqosqhZy8WCPY5Yv1R0wL+H3IwC0W4w8cFhfcHUCtOQdcq9b Vjx//oFgvMqrM1ziw3xjhK6qyHexSr1jfpbkVl/VkVhlR+gJ9eL1h8SZ19Hbns2KLNjK ljQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=349bO3eKWo36+YLW2izUvQ+NabomJ8/oiHBTBWo5iAw=; b=kXAbvBlFnFJHD96uct92BlzPkycmP8233VaQGBz49hQs3Ycu8TFVadfB8VBVJcDmtn H/sWgX8UpUMJfIsAdtlPXW+S6rBvwgIy9BwLkFg0YtvVyR7EQ7gztC6oy03nbSM50ubi fVmZKL2iEFpH8XKxSCgn/c9CZHikyZf1QQWiOew8QBgX+0m735MQ5lhHIk7k6Q0zv+Ad bkmfH1XiduX8vmm2EkbVvUMrLHnWuwDBJ15fm2JLCjA17C1S8hIrfVe7zHpF8prf9nE7 IucJVHfPjQsoYnJsg7wqfPSjwxu3nwqrjAkjqh/5XVp8D3XjidhbBlG/6CIHyLWv+p5h b79Q== X-Gm-Message-State: APjAAAUtGj3S8eJ4EN/blwX4Ng8vOmm3gJDiY+Vn0sDmlPrfHc0pokaz bV/hD3P2hOpARGghcGhsyzdkTN57IUU= X-Received: by 2002:adf:e584:: with SMTP id l4mr5319382wrm.54.1559287693057; Fri, 31 May 2019 00:28:13 -0700 (PDT) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id u9sm11324302wme.48.2019.05.31.00.28.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 00:28:12 -0700 (PDT) From: Nikita Yushchenko To: Andrew Lunn , Vivien Didelot , Florian Fainelli Cc: "David S. Miller" , Heiner Kallweit , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy , Nikita Yushchenko Subject: [PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0 Date: Fri, 31 May 2019 10:27:07 +0300 Message-Id: <20190531072707.1755-1-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 28414db979b0..6b77fde5f0e4 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -1392,7 +1392,7 @@ static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, int err; if (!vid) - return -EINVAL; + return -EOPNOTSUPP; entry->vid = vid - 1; entry->valid = false; -- 2.11.0