crypto/virtio: allocate private data by NUMA affinity
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 4 Sep 2019 13:21:51 +0000 (21:21 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit933f42eac9fcaf37f4063c38bd9546956cd857c9
treebbd0ef662419a6c99945d23e27b369e9eff77e25
parent407ca9a72d825eefbc386dbf23523e0992fe7d75
crypto/virtio: allocate private data by NUMA affinity

It's better to allocate device private data on the same NUMA node with
device, rather than with the main thread. This helps avoid cross-NUMA
access for worker thread.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Jay Zhou <jianjay.zhou@huawei.com>
drivers/crypto/virtio/virtio_cryptodev.c