Hi Henning, Thanks for the feedback, Id just like to prevent the panic from users stupidity, the only reason for the stacked vlan that I can think of was if someone didnt know how do do vxlan, and you were aggregating vlans
for a customer , their customer and their customers customer vlans and they all happened to love QinQ and you needed to be able to connect one of the customers, customers datacentre provider - wholesale provider - reseller provider- customer- and c customers weird requirements below that for robustness give a good ceiling for any conceivable (albeit weird) config Thanks for taking a look I really appreciate it Tom On Thu, 12 Nov 2026 at 12:55, Henning Brauer <[email protected]> wrote: > > * Tom Smyth <[email protected]> [2026-11-06 16:07]: > > vlan(4) and svlan(4) interfaces can be stacked on each other > > without limit. Transmit, SIOCGIFMEDIA and SIOCADDMULTI/ > > SIOCDELMULTI recurse once per layer, so on amd64 a stack of a > > few dozen vlans (53 to 76 in the tests below, depending on the > > operation and the run) overflows the kernel stack (double > > fault) as soon as the top vlan is displayed, given an address > > or used. > > while I'm not necessarily against preventing that... I'm very much > inclined to say "don't do that, then". I mean, it just doesn't make > sense to stack dozens of vlans/svlans on top of each other, and it's > root-only. > > -- > Henning Brauer, [email protected], [email protected] > BS Web Services GmbH, http://bsws.de, Full-Service ISP > Secure Hosting, Mail and DNS. Virtual & Dedicated Servers, Root to Fully > Managed > Henning Brauer Consulting, http://henningbrauer.com/ > -- Kindest regards, Tom Smyth.
