Merge branch 'mvneta-rss-xps'
authorDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 01:28:30 +0000 (20:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 01:28:30 +0000 (20:28 -0500)
commitfbc088577d7717b58d844f37d089c0598fbf3c3a
tree5829e7e3d3220519916786d154fcfcb0b5914c69
parent6e71b29908e9e9bffc03b8e991c9e58a0fa92d9c
parent50bf8cb6fc9c264b49e0a0cad3f83e751591b6ec
Merge branch 'mvneta-rss-xps'

Gregory CLEMENT says:

====================
mvneta: Introduce RSS support and XPS configuration

this series is the first step add RSS support on mvneta.

It will allow associating an ethernet interface to a given CPU through
RSS by using "ethtool -X ethX weight". Indeed, currently I only enable
one entry in the RSS lookup table. Even if it is not really RSS, it
allows to get back the irq affinity feature we lost by using the
percpu interrupt.

The main change compared to the second version is the setup for the XPS
instead of using specific hack inside the driver in the forth
patch.

Th first patch make the default queue associate to each port and no
more a global variable.

The second patch really associates the RX queues with the CPUs instead
of masking the percpu interrupts for doing it. All the RX queues are
enabled and are statically associated with the CPUs by using a modulo
of the number of present CPUs. But at this stage only one RX queue
will receive the stream.

The third patch introduces a first level of RSS support through the
ethtool functions. As explained in the introduction there is only one
entry in the RSS lookup table which permits at the end to associate an
mvneta port to a CPU through the RX queues because the mapping is
static.
====================

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