]> 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)
commit809a65e50e57ec45b2840253893ed6934d270bbb
tree97c5e22dbd7a918e35d8dd64861653df2ec4a3d2
parent92290ed9570e7c16c2ceaaa6c9ac3f4212eb00f5
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