OSDN Git Service

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)
commitc265b569a45fd03385154ee0ec7cac96fb7e6a0a
tree97c5e22dbd7a918e35d8dd64861653df2ec4a3d2
parentef739f1dd3ac1f47b8c81ce9e201aade9813441c
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