[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190602.135417.1658688470668746683.davem@davemloft.net>
Date: Sun, 02 Jun 2019 13:54:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: nikita.yoush@...entembedded.com
Cc: andrew@...n.ch, vivien.didelot@...il.com, f.fainelli@...il.com,
hkallweit1@...il.com, marek.behun@....cz,
rmk+kernel@...linux.org.uk, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, cphealy@...il.com
Subject: Re: [PATCH] net: dsa: mv88e6xxx: avoid error message on remove
from VLAN 0
From: Nikita Yushchenko <nikita.yoush@...entembedded.com>
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 <nikita.yoush@...entembedded.com>
Applied.
Powered by blists - more mailing lists