[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdaCV3c5mHDSO6Lw7rrEZVY2cw+4=nox3xgtkfJsVFM=Hg@mail.gmail.com>
Date: Sat, 28 Sep 2019 22:43:21 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: dsa: rtl8366: Check VLAN ID and not ports
On Sat, Sep 28, 2019 at 10:36 PM Florian Fainelli <f.fainelli@...il.com> wrote:
> Do we need to duplicate the same is_vlan_valid() check in both the
> vlan_prepare and vlan_add callbacks?
I'm unsure of the semantics of these calls, the check was in the
OpenWrt driver that I started from.
Is it guaranteed that .vlan_prepare() and .vlan_add() are
always called in succession? Then .vlan_prepare() should
be enough.
Yours,
Linus Walleij
Powered by blists - more mailing lists