Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 8 May 2018 09:39:58 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Salvatore Mesoraca' <>, Florian Fainelli
CC: Andrew Lunn <>, ""
	<>, Kernel Hardening
	<>, ""
	<>, "David S. Miller" <>, Kees Cook
	<>, Vivien Didelot <>
Subject: RE: [PATCH v2] net: dsa: drop some VLAs in switch.c

From: Salvatore Mesoraca
> Sent: 07 May 2018 20:03
> This optimization will save us an allocation when number of ports is
> less than 32 or 64 (depending on arch).
> IMHO it's useful, if you consider that, right now, DSA works only with
> 12-ports switches.

Why not just error out if the number of ports is greater than the compile-time

Worry about dynamic allocation if you need a lot more than 64 ports.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.