diff options
| author | Barry Song <[email protected]> | 2020-07-05 21:18:58 +1200 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-07-09 18:25:23 +1000 |
| commit | 7bc13b5b60e9412a7ddef300ce2c661eecd1fd5d (patch) | |
| tree | 52f93eba50304a85d9930529db9d219c1dbc398f /include/linux | |
| parent | 3347c8a079d67af21760a78cc5f2abbcf06d9571 (diff) | |
crypto: api - permit users to specify numa node of acomp hardware
For a Linux server with NUMA, there are possibly multiple (de)compressors
which are either local or remote to some NUMA node. Some drivers will
automatically use the (de)compressor near the CPU calling acomp_alloc().
However, it is not necessarily correct because users who send acomp_req
could be from different NUMA node with the CPU which allocates acomp.
Just like kernel has kmalloc() and kmalloc_node(), here crypto can have
same support.
Cc: Seth Jennings <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Vitaly Wool <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Signed-off-by: Barry Song <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/crypto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index bc5d2d4bfc3d..7cd2d00f0a05 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -594,6 +594,8 @@ int crypto_has_alg(const char *name, u32 type, u32 mask); struct crypto_tfm { u32 crt_flags; + + int node; void (*exit)(struct crypto_tfm *tfm); |