[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8760tgg90s.fsf@ketchup.mtl.sfl>
Date: Fri, 10 Jun 2016 15:04:51 -0400
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
To: Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, davem@...emloft.net, jiri@...lanox.com,
idosch@...lanox.com
Subject: Re: [PATCH net-next 4/4] net: dsa: bcm_sf2: Add VLAN support
Hi Florian,
Florian Fainelli <f.fainelli@...il.com> writes:
> Another possible approach would have been to allocate the vlan structure
> upong port_vlan_prepare() though that would typically result in more
> fragmentation over time once se start using more VLANs.
This is indeed what the switchdev prepare phase is for. If anything goes
wrong before calling the commit phase, switchdev will free the allocated
data.
Thanks,
Vivien
Powered by blists - more mailing lists