Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: virtio - Replace package id with numa node id

With multiple virtio crypto devices supported with different NUMA
nodes, when crypto session is created, it will search virtio crypto
device with the same numa node of current CPU.

Here API topology_physical_package_id() is replaced with cpu_to_node()
since package id is physical concept, and one package id have multiple
memory numa id.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Bibo Mao and committed by
Herbert Xu
f4211645 14f86a11

+1 -1
+1 -1
drivers/crypto/virtio/virtio_crypto_common.h
··· 135 135 int cpu, node; 136 136 137 137 cpu = get_cpu(); 138 - node = topology_physical_package_id(cpu); 138 + node = cpu_to_node(cpu); 139 139 put_cpu(); 140 140 141 141 return node;