diff options
| author | Gal Pressman <galpress@amazon.com> | 2019-05-28 15:46:14 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-29 13:14:14 -0300 |
| commit | 255efcaeb623dd9777523b98d29aa5a0792d9245 (patch) | |
| tree | 12d00ce0aa21fe81312b519d1b965a5946d41437 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5f5e4eb4fb2d6c09db18dc431a0c4a3b11ff5bae (diff) | |
| download | cachepc-linux-255efcaeb623dd9777523b98d29aa5a0792d9245.tar.gz cachepc-linux-255efcaeb623dd9777523b98d29aa5a0792d9245.zip | |
RDMA/efa: Use kvzalloc instead of kzalloc with fallback
Use kvzalloc which attempts to allocate a physically continuous buffer and
fallbacks to virtually continuous on failure instead of open coding it in
the driver.
The is_vmalloc_addr function is used to determine whether the buffer is
physically continuous or not (which determines direct vs indirect MR
registration mode).
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
