]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: default config to 1 channel/core in local NUMA node only
authorÍñigo Huguet <ihuguet@redhat.com>
Mon, 28 Feb 2022 13:22:53 +0000 (14:22 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Mar 2022 01:12:38 +0000 (17:12 -0800)
commit32b57c7da690b666c12955507d5d0dace38adaa7
tree97c5e22dbd7a918e35d8dd64861653df2ec4a3d2
parent511db633e79807a6c50a7730bac2039b443879a7
sfc: default config to 1 channel/core in local NUMA node only

Handling channels from CPUs in different NUMA node can penalize
performance, so better configure only one channel per core in the same
NUMA node than the NIC, and not per each core in the system.

Fallback to all other online cores if there are not online CPUs in local
NUMA node.

Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx_channels.c