]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: improve the distribution of packets on CPUs when using RSS
authorAntoine Tenart <antoine.tenart@bootlin.com>
Thu, 12 Jul 2018 11:54:21 +0000 (13:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:30:48 +0000 (17:30 -0700)
commit6207948859e557568aa27958c5273b2fcf580ebc
treeec221951db8afc2890bfd0da30d4d2282f7924d8
parent93a676300f2dd910ddde9bfb3e3b09a906ccd8dd
net: mvpp2: improve the distribution of packets on CPUs when using RSS

This patch adds an extra indirection when setting the indirection table
into the RSS hardware table to improve the packets distribution across
CPUs. For example, if 2 queues are used on a multi-core system this new
indirection will choose two queues on two different CPUs instead of the
two first queues which are on the same first CPU.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c