Merge branch 'rss_key_fill'
authorDavid S. Miller <davem@davemloft.net>
Sun, 16 Nov 2014 20:59:19 +0000 (15:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Nov 2014 20:59:19 +0000 (15:59 -0500)
Eric Dumazet says:

====================
net: provide common RSS key infrastructure

RSS (Receive Side Scaling) uses a 40 bytes key to provide hash for incoming
packets to select appropriate incoming queue on NIC.

Hash algo (Toeplitz) is also well known and documented by Microsoft
(search for "Verifying the RSS Hash Calculation")

Problem is that some drivers use a well known key.
It makes very easy for attackers to target one particular RX queue,
knowing that number of RX queues is a power of two, or at least some
small number.

Other drivers use a random value per port, making difficult
tuning on bonding setups.

Lets add a common infrastructure, so that host gets an unique
RSS key, and drivers do not have to worry about this.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge