]> 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)
commit3dc3ef8e294c6abcad57e43726340c753a3be09e
treeec221951db8afc2890bfd0da30d4d2282f7924d8
parent20a28e7e49b913a4bf6b16c00f302c46e60d1f36
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