[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240513160027.6a4a2350@kernel.org>
Date: Mon, 13 May 2024 16:00:27 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
linux@...linux.org.uk, horms@...nel.org, andrew@...n.ch,
netdev@...r.kernel.org, mengyuanlou@...-swift.com, Sai Krishna
<saikrishnag@...vell.com>
Subject: Re: [PATCH net v3 2/3] net: wangxun: match VLAN CTAG and STAG
features
On Fri, 10 May 2024 14:17:50 +0800 Jiawen Wu wrote:
> Hardware requires VLAN CTAG and STAG configuration always matches. And
> whether VLAN CTAG or STAG changes, the configuration needs to be changed
> as well.
With this patch the resulting configuration will depend on the order of
actions. Basically the features will be disable if the last action is
either stag or ctag disable. This may cause to subtle bugs if some
refactoring changes the order of enable and disable.
It'd be better to turn both features on if _either_ feature was
requested. And require that _both_ are disabled before disabling.
--
pw-bot: cr
Powered by blists - more mailing lists