]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1033ad2fc3c3a8afc81baf34664b589d175fccbf
tree3feae5512b57c55e708107e6c191fd5d611d17f9
parentf9f0ea8cb52a16f4f9f8ad0b06dc8b2ebe33b388
parent2822e550b8e287bba95045af31b9480f6e797c9e
Merge branch 'rss_key_fill'

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>