| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <20111018083606.6367ff50@nehalam.linuxnetplumber.net> Date: Tue, 18 Oct 2011 08:36:06 -0700 From: Stephen Hemminger <shemminger@...tta.com> To: Yevgeny Petrilin <yevgenyp@...lanox.co.il> Cc: Eric Dumazet <eric.dumazet@...il.com>, "davem@...emloft.net" <davem@...emloft.net>, "netdev@...r.kernel.org" <netdev@...r.kernel.org> Subject: Re: [PATCH 6/7] mlx4_en: Adding rxhash support On Tue, 18 Oct 2011 08:59:44 +0000 Yevgeny Petrilin <yevgenyp@...lanox.co.il> wrote: > > > > What is the gain using random values ? > > > > Usually, we tend to have same hardware in a single machine, or we use > > active-backup bonding mode, and an active slave flip can change rxhash > > values with litle effect, since this happens not often. > > > > I really prefer not random values, because it allows to have replayable > > configurations : For a given tcp flow, the same rxhash value is given > > and same cpu target in RPS. Its way easier to tune your machine for some workloads. > > > > There is no gain in random values, > I'll make the change to have static value for RSS function. > > We might consider how to ensure consistency across the different drivers in this aspect. The key should be part of the network device core. Almost all hardware just implements the Microsoft standard, and if all drivers used same key they should come up with the same hash. Although using the same key all the time makes testing easier. The risk of using the same key is that it makes it easier for an attacker to create a set of addresses that all map to the same CPU which would make a DoS attack work better. Therefore the key should be randomly generated at boot time. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists