]> 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)
commit923cef5db8f8c583ed2553132cd62954e361552e
tree3feae5512b57c55e708107e6c191fd5d611d17f9
parent7ff6317e0d6d604251d5584e849c965ddf8c2f01
parentd3ebd501214840242a1b492aa1dd2112a8d73108
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>